@@ -883,7 +883,8 @@ public function testRenderAnonymousException()
883
883
$ application = new Application ();
884
884
$ application ->setAutoExit (false );
885
885
$ application ->register ('foo ' )->setCode (function () {
886
- throw new class ('' ) extends \InvalidArgumentException { };
886
+ throw new class ('' ) extends \InvalidArgumentException {
887
+ };
887
888
});
888
889
$ tester = new ApplicationTester ($ application );
889
890
@@ -893,20 +894,22 @@ public function testRenderAnonymousException()
893
894
$ application = new Application ();
894
895
$ application ->setAutoExit (false );
895
896
$ application ->register ('foo ' )->setCode (function () {
896
- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () { })));
897
+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () {
898
+ })));
897
899
});
898
900
$ tester = new ApplicationTester ($ application );
899
901
900
902
$ tester ->run (['command ' => 'foo ' ], ['decorated ' => false ]);
901
- $ this ->assertStringContainsString ('Dummy type "@anonymous" is invalid. ' , $ tester ->getDisplay (true ));
903
+ $ this ->assertStringContainsString ('Dummy type "class @anonymous" is invalid. ' , $ tester ->getDisplay (true ));
902
904
}
903
905
904
906
public function testRenderExceptionStackTraceContainsRootException ()
905
907
{
906
908
$ application = new Application ();
907
909
$ application ->setAutoExit (false );
908
910
$ application ->register ('foo ' )->setCode (function () {
909
- throw new class ('' ) extends \InvalidArgumentException { };
911
+ throw new class ('' ) extends \InvalidArgumentException {
912
+ };
910
913
});
911
914
$ tester = new ApplicationTester ($ application );
912
915
@@ -916,12 +919,13 @@ public function testRenderExceptionStackTraceContainsRootException()
916
919
$ application = new Application ();
917
920
$ application ->setAutoExit (false );
918
921
$ application ->register ('foo ' )->setCode (function () {
919
- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () { })));
922
+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () {
923
+ })));
920
924
});
921
925
$ tester = new ApplicationTester ($ application );
922
926
923
927
$ tester ->run (['command ' => 'foo ' ], ['decorated ' => false ]);
924
- $ this ->assertStringContainsString ('Dummy type "@anonymous" is invalid. ' , $ tester ->getDisplay (true ));
928
+ $ this ->assertStringContainsString ('Dummy type "class @anonymous" is invalid. ' , $ tester ->getDisplay (true ));
925
929
}
926
930
927
931
public function testRun ()
0 commit comments