You are here

public function ApplicationTest::testGetNamespaces in Zircon Profile 8.0

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

File

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

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

public function testGetNamespaces() {
  $application = new Application();
  $application
    ->add(new \FooCommand());
  $application
    ->add(new \Foo1Command());
  $this
    ->assertEquals(array(
    'foo',
  ), $application
    ->getNamespaces(), '->getNamespaces() returns an array of unique used namespaces');
}