@@ -883,7 +883,8 @@ public function testRenderAnonymousException()
883883 $ application = new Application ();
884884 $ application ->setAutoExit (false );
885885 $ application ->register ('foo ' )->setCode (function () {
886- throw new class ('' ) extends \InvalidArgumentException { };
886+ throw new class ('' ) extends \InvalidArgumentException {
887+ };
887888 });
888889 $ tester = new ApplicationTester ($ application );
889890
@@ -893,20 +894,22 @@ public function testRenderAnonymousException()
893894 $ application = new Application ();
894895 $ application ->setAutoExit (false );
895896 $ 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+ })));
897899 });
898900 $ tester = new ApplicationTester ($ application );
899901
900902 $ 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 ));
902904 }
903905
904906 public function testRenderExceptionStackTraceContainsRootException ()
905907 {
906908 $ application = new Application ();
907909 $ application ->setAutoExit (false );
908910 $ application ->register ('foo ' )->setCode (function () {
909- throw new class ('' ) extends \InvalidArgumentException { };
911+ throw new class ('' ) extends \InvalidArgumentException {
912+ };
910913 });
911914 $ tester = new ApplicationTester ($ application );
912915
@@ -916,12 +919,13 @@ public function testRenderExceptionStackTraceContainsRootException()
916919 $ application = new Application ();
917920 $ application ->setAutoExit (false );
918921 $ 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+ })));
920924 });
921925 $ tester = new ApplicationTester ($ application );
922926
923927 $ 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 ));
925929 }
926930
927931 public function testRun ()
0 commit comments