You are here

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

File

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

Class

ApplicationTest

Namespace

Symfony\Component\Console\Tests

Code

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'));
}