File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/Symfony/Component/Console/Tests Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,24 @@ public function testFindAlternativeExceptionMessageSingle($name)
459
459
$ application ->find ($ name );
460
460
}
461
461
462
+ public function testDontRunAlternativeNamespaceName ()
463
+ {
464
+ $ application = new Application ();
465
+ $ application ->add (new \Foo1Command ());
466
+ $ application ->setAutoExit (false );
467
+ $ tester = new ApplicationTester ($ application );
468
+ $ tester ->run (array ('command ' => 'foos:bar1 ' ), array ('decorated ' => false ));
469
+ $ this ->assertSame ("
470
+
471
+ There are no commands defined in the \"foos \" namespace.
472
+
473
+ Did you mean this?
474
+ foo
475
+
476
+
477
+ " , $ tester ->getDisplay (true ));
478
+ }
479
+
462
480
public function testCanRunAlternativeCommandName ()
463
481
{
464
482
$ application = new Application ();
You can’t perform that action at this time.
0 commit comments