public function ApplicationTest::testFindWithAmbiguousAbbreviations in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testFindWithAmbiguousAbbreviations()
@dataProvider provideAmbiguousAbbreviations
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 266
Class
Namespace
Symfony\Component\Console\TestsCode
public function testFindWithAmbiguousAbbreviations($abbreviation, $expectedExceptionMessage) {
$this
->setExpectedException('InvalidArgumentException', $expectedExceptionMessage);
$application = new Application();
$application
->add(new \FooCommand());
$application
->add(new \Foo1Command());
$application
->add(new \Foo2Command());
$application
->find($abbreviation);
}