File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -780,8 +780,7 @@ public function testRunDispatchesIntegerExitCode()
780
780
781
781
// We can assume here that some other test asserts that the event is dispatched at all
782
782
$ dispatcher = new EventDispatcher ();
783
- $ self = $ this ;
784
- $ dispatcher ->addListener ('console.terminate ' , function (ConsoleTerminateEvent $ event ) use ($ self , &$ passedRightValue ) {
783
+ $ dispatcher ->addListener ('console.terminate ' , function (ConsoleTerminateEvent $ event ) use (&$ passedRightValue ) {
785
784
$ passedRightValue = (4 === $ event ->getExitCode ());
786
785
});
787
786
@@ -820,8 +819,7 @@ public function testRunDispatchesExitCodeOneForExceptionCodeZero()
820
819
821
820
// We can assume here that some other test asserts that the event is dispatched at all
822
821
$ dispatcher = new EventDispatcher ();
823
- $ self = $ this ;
824
- $ dispatcher ->addListener ('console.terminate ' , function (ConsoleTerminateEvent $ event ) use ($ self , &$ passedRightValue ) {
822
+ $ dispatcher ->addListener ('console.terminate ' , function (ConsoleTerminateEvent $ event ) use (&$ passedRightValue ) {
825
823
$ passedRightValue = (1 === $ event ->getExitCode ());
826
824
});
827
825
You can’t perform that action at this time.
0 commit comments