Fix build

This commit is contained in:
Romain Neutron
2012-01-31 23:33:33 +01:00
parent 0f28f12fe7
commit a332aebe68
2 changed files with 1 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ class module_console_systemTemplateGenerator extends Command
$twig->addFilter('key_exists', new Twig_Filter_Function('array_key_exists')); $twig->addFilter('key_exists', new Twig_Filter_Function('array_key_exists'));
$twig->addFilter('array_keys', new Twig_Filter_Function('array_keys')); $twig->addFilter('array_keys', new Twig_Filter_Function('array_keys'));
$twig->addFilter('round', new Twig_Filter_Function('round')); $twig->addFilter('round', new Twig_Filter_Function('round'));
$twig->addFilter('get_class', new Twig_Filter_Function('get_class'));
$twig->addFilter('formatdate', new Twig_Filter_Function('phraseadate::getDate')); $twig->addFilter('formatdate', new Twig_Filter_Function('phraseadate::getDate'));
$twig->addFilter('getPrettyDate', new Twig_Filter_Function('phraseadate::getPrettyString')); $twig->addFilter('getPrettyDate', new Twig_Filter_Function('phraseadate::getPrettyString'));
$twig->addFilter('prettyDate', new Twig_Filter_Function('phraseadate::getPrettyString')); $twig->addFilter('prettyDate', new Twig_Filter_Function('phraseadate::getPrettyString'));

View File

@@ -20,7 +20,6 @@ class module_console_systemTemplateGeneratorTest extends PHPUnit_Framework_TestC
$commandTester = new CommandTester($command); $commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName())); $commandTester->execute(array('command' => $command->getName()));
$lines = explode("\n", trim($commandTester->getDisplay()));
$last_line = array_pop(explode("\n", trim($commandTester->getDisplay()))); $last_line = array_pop(explode("\n", trim($commandTester->getDisplay())));
$this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed'); $this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed');