Skip to content

Commit

Permalink
[Console] Add failing test to demonstrate issue symfony#7234
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Apr 7, 2013
1 parent 9c46043 commit cd0c55c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Symfony/Component/Console/Tests/ApplicationTest.php
Expand Up @@ -345,6 +345,16 @@ public function testFindAlternativeNamespace()
} }
} }


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

public function testSetCatchExceptions() public function testSetCatchExceptions()
{ {
$application = $this->getMock('Symfony\Component\Console\Application', array('getTerminalWidth')); $application = $this->getMock('Symfony\Component\Console\Application', array('getTerminalWidth'));
Expand Down

0 comments on commit cd0c55c

Please sign in to comment.