public function testBadgeGenerator()
{
$kernel = new \AppKernel('test', true);
$kernel->boot();
$application = new Application($kernel);
$application->add(new KbGenerateBadgesCommand());
try {
$command = $application->find('kb:generate:badges');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName()));
$this->assertRegExp('/generated/', $commandTester->getDisplay());
} catch (RuntimeException $e) {
if ('GD is not compiled with FreeType support' == $e->getMessage()) {
$this->markTestSkipped('GD is not compiled with FreeType support');
} else {
throw $e;
}
}
}