File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77use phpmock \MockBuilder ;
88use phpmock \Deactivatable ;
99use PHPUnit \Event \Facade ;
10+ use PHPUnit \Event \Test \Finished ;
1011use PHPUnit \Framework \MockObject \MockObject ;
1112use ReflectionClass ;
1213use ReflectionMethod ;
@@ -135,9 +136,9 @@ public function registerForTearDown(Deactivatable $deactivatable)
135136 static function (MockDisabler $ original ) use ($ directDispatcher , $ propSubscribers ) {
136137 $ subscribers = $ propSubscribers ->getValue ($ directDispatcher );
137138
138- foreach ($ subscribers [' PHPUnit\Event\Test\ Finished' ] as $ key => $ subscriber ) {
139+ foreach ($ subscribers [Finished::class ] as $ key => $ subscriber ) {
139140 if ($ original === $ subscriber ) {
140- unset($ subscribers [' PHPUnit\Event\Test\ Finished' ][$ key ]);
141+ unset($ subscribers [Finished::class ][$ key ]);
141142 }
142143 }
143144
You can’t perform that action at this time.
0 commit comments