public function ApplicationTest::testFindNamespace in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testFindNamespace()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 196
Class
Namespace
Symfony\Component\Console\TestsCode
public function testFindNamespace() {
$application = new Application();
$application
->add(new \FooCommand());
$this
->assertEquals('foo', $application
->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
$this
->assertEquals('foo', $application
->findNamespace('f'), '->findNamespace() finds a namespace given an abbreviation');
$application
->add(new \Foo2Command());
$this
->assertEquals('foo', $application
->findNamespace('foo'), '->findNamespace() returns the given namespace if it exists');
}