Fix PSR-0 file naming

This commit is contained in:
Romain Neutron
2014-02-14 12:16:54 +01:00
parent 787e86aacf
commit c5d3f97258
83 changed files with 45 additions and 38 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Alchemy\Phrasea\CLI;
use Symfony\Component\Console\Tester\CommandTester;
class module_console_aboutLicenseTest extends \PhraseanetTestCase
{
/**
* @var module_console_aboutLicense
*/
protected $object;
/**
* @covers module_console_aboutAuthors::execute
*/
public function testExecute()
{
$application = new CLI('test', null, 'test');
$application->command(new module_console_aboutLicense('about:license'));
$command = $application['console']->find('about:license');
$commandTester = new CommandTester($command);
$commandTester->execute(['command' => $command->getName()]);
$this->assertEquals(
trim(file_get_contents(__DIR__ . '/../../../../LICENSE'))
, trim($commandTester->getDisplay())
);
}
}