Pluf Framework

Pluf Framework Commit Details


Date:2010-02-03 06:15:43 (14 years 10 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:a9718072eae01b28a09ca035d02da11bab1ddbe7
Parents: 1050261a272731eca2ef3e8e83d8d73e81022ed1
Message:Fixed the unit test to follow the new compiler way of doing the things.

Changes:

File differences

src/Pluf/Tests/TemplateCompiler/BlockTrans.php
3333
3434
3535
36
36
3737
3838
3939
$block = '<li>{blocktrans}This email <em>{$email}</em> is already registered. If you forgot your password, you can recover it easily.{/blocktrans}</li>';
$compiler = new Pluf_Template_Compiler('dummy', array(), false);
$compiler->templateContent = $block;
$this->assertEqual('<li><?php ob_start(); ?>This email <em>%%email%%</em> is already registered. If you forgot your password, you can recover it easily.<?php $_b_t_s=ob_get_contents(); ob_end_clean(); echo(Pluf_Translation::sprintf(__($_b_t_s), array(\'email\' => Pluf_Template_safeEcho($t->_vars[\'email\'], false)))); ?></li>',
$this->assertEqual('<li><?php ob_start(); ?>This email <em>%%email%%</em> is already registered. If you forgot your password, you can recover it easily.<?php $_b_t_s=ob_get_contents(); ob_end_clean(); echo(Pluf_Translation::sprintf(__($_b_t_s), array(\'email\' => Pluf_Template_safeEcho($t->_vars->email, false)))); ?></li>',
$compiler->getCompiledTemplate());
}
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05564s using 13 queries.