You are here

public function ApplicationTest::testFindAmbiguousNamespace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testFindAmbiguousNamespace()

@expectedException \InvalidArgumentException @expectedExceptionMessage The namespace "f" is ambiguous (foo, foo1).

File

vendor/symfony/console/Tests/ApplicationTest.php, line 218

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testFindAmbiguousNamespace() {
  $application = new Application();
  $application
    ->add(new \BarBucCommand());
  $application
    ->add(new \FooCommand());
  $application
    ->add(new \Foo2Command());
  $application
    ->findNamespace('f');
}