mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Add initial travis support to the repository
This commit is contained in:
22
tests/ListCommandTest.php
Normal file
22
tests/ListCommandTest.php
Normal 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 */
|
||||
Reference in New Issue
Block a user