@@ -897,7 +897,8 @@ public function testRenderAnonymousException()
897897 $ application = new Application ();
898898 $ application ->setAutoExit (false );
899899 $ application ->register ('foo ' )->setCode (function () {
900- throw new class ('' ) extends \InvalidArgumentException { };
900+ throw new class ('' ) extends \InvalidArgumentException {
901+ };
901902 });
902903 $ tester = new ApplicationTester ($ application );
903904
@@ -907,20 +908,22 @@ public function testRenderAnonymousException()
907908 $ application = new Application ();
908909 $ application ->setAutoExit (false );
909910 $ application ->register ('foo ' )->setCode (function () {
910- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () { })));
911+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () {
912+ })));
911913 });
912914 $ tester = new ApplicationTester ($ application );
913915
914916 $ tester ->run (['command ' => 'foo ' ], ['decorated ' => false ]);
915- $ this ->assertStringContainsString ('Dummy type "@anonymous" is invalid. ' , $ tester ->getDisplay (true ));
917+ $ this ->assertStringContainsString ('Dummy type "class @anonymous" is invalid. ' , $ tester ->getDisplay (true ));
916918 }
917919
918920 public function testRenderExceptionStackTraceContainsRootException ()
919921 {
920922 $ application = new Application ();
921923 $ application ->setAutoExit (false );
922924 $ application ->register ('foo ' )->setCode (function () {
923- throw new class ('' ) extends \InvalidArgumentException { };
925+ throw new class ('' ) extends \InvalidArgumentException {
926+ };
924927 });
925928 $ tester = new ApplicationTester ($ application );
926929
@@ -930,12 +933,13 @@ public function testRenderExceptionStackTraceContainsRootException()
930933 $ application = new Application ();
931934 $ application ->setAutoExit (false );
932935 $ application ->register ('foo ' )->setCode (function () {
933- throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () { })));
936+ throw new \InvalidArgumentException (sprintf ('Dummy type "%s" is invalid. ' , \get_class (new class () {
937+ })));
934938 });
935939 $ tester = new ApplicationTester ($ application );
936940
937941 $ tester ->run (['command ' => 'foo ' ], ['decorated ' => false ]);
938- $ this ->assertStringContainsString ('Dummy type "@anonymous" is invalid. ' , $ tester ->getDisplay (true ));
942+ $ this ->assertStringContainsString ('Dummy type "class @anonymous" is invalid. ' , $ tester ->getDisplay (true ));
939943 }
940944
941945 public function testRun ()
0 commit comments