Add initial travis support to the repository

This commit is contained in:
Craig Davis
2014-01-12 15:21:20 -07:00
parent fa4e2f9e15
commit f4c5f62807
4 changed files with 74 additions and 0 deletions

22
tests/ListCommandTest.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Tester\CommandTester;
class ListCommandTest extends \ResumeTest
{
public function testExecute()
{
$command = $this->console->find('list');
$commandTester = new CommandTester($command);
$commandTester->execute(array(
'command' => $command->getName()
));
$this->assertRegExp('/Available commands/', $commandTester->getDisplay());
$this->assertRegExp('/Options/', $commandTester->getDisplay());
$this->assertRegExp('/list/', $commandTester->getDisplay());
}
}
/* End of file ListCommandTest.php */