You are here

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

File

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

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testFindNamespaceWithSubnamespaces() {
  $application = new Application();
  $application
    ->add(new \FooSubnamespaced1Command());
  $application
    ->add(new \FooSubnamespaced2Command());
  $this
    ->assertEquals('foo', $application
    ->findNamespace('foo'), '->findNamespace() returns commands even if the commands are only contained in subnamespaces');
}