Fix tests on PHP 5.4

This commit is contained in:
Romain Neutron
2012-09-27 01:46:18 +02:00
parent d4f466ef63
commit 0ac8a9d8ae
107 changed files with 196 additions and 175 deletions

View File

@@ -17,7 +17,8 @@ class module_console_systemTemplateGeneratorTest extends PHPUnit_Framework_TestC
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName()));
$last_line = array_pop(explode("\n", trim($commandTester->getDisplay())));
$data = explode("\n", trim($commandTester->getDisplay()));
$last_line = array_pop($data);
$this->assertTrue(strpos($last_line, 'templates failed') === false, 'Some templates failed');
$this->assertTrue(strpos($last_line, 'templates generated') !== true, 'Some templates have been generated');