public function ApplicationTest::testFindNamespace in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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');
}