add(new module_console_systemTemplateGenerator('system:templateGenerator')); $command = $application->find('system:templateGenerator'); $commandTester = new CommandTester($command); $commandTester->execute(array('command' => $command->getName())); $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 generated') !== true, 'Some templates have been generated'); } } ?>