public function ApplicationTest::testFindAlternativeCommandsWithAnAlias in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testFindAlternativeCommandsWithAnAlias()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 406
Class
Namespace
Symfony\Component\Console\TestsCode
public function testFindAlternativeCommandsWithAnAlias() {
$fooCommand = new \FooCommand();
$fooCommand
->setAliases(array(
'foo2',
));
$application = new Application();
$application
->add($fooCommand);
$result = $application
->find('foo');
$this
->assertSame($fooCommand, $result);
}