You are here

public function ApplicationTest::testFindWithDoubleColonInNameThrowsException 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::testFindWithDoubleColonInNameThrowsException()

@expectedException \InvalidArgumentException @expectedExceptionMessage Command "foo::bar" is not defined.

File

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

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testFindWithDoubleColonInNameThrowsException() {
  $application = new Application();
  $application
    ->add(new \FooCommand());
  $application
    ->add(new \Foo4Command());
  $application
    ->find('foo::bar');
}