public function ApplicationTest::testFindNamespaceDoesNotFailOnDeepSimilarNamespaces in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/ApplicationTest.php \Symfony\Component\Console\Tests\ApplicationTest::testFindNamespaceDoesNotFailOnDeepSimilarNamespaces()
File
- vendor/
symfony/ console/ Tests/ ApplicationTest.php, line 448
Class
Namespace
Symfony\Component\Console\TestsCode
public function testFindNamespaceDoesNotFailOnDeepSimilarNamespaces() {
$application = $this
->getMock('Symfony\\Component\\Console\\Application', array(
'getNamespaces',
));
$application
->expects($this
->once())
->method('getNamespaces')
->will($this
->returnValue(array(
'foo:sublong',
'bar:sub',
)));
$this
->assertEquals('foo:sublong', $application
->findNamespace('f:sub'));
}