Commit 44a3c7a 1 parent 7633962 commit 44a3c7a Copy full SHA for 44a3c7a
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ function () use ($modifiers): void {
48
48
['modifiers ' => $ modifiers ],
49
49
);
50
50
51
- $ operation ->execute ($ this ->getPrimaryServer ());
51
+ $ this ->assertDeprecated (
52
+ fn () => $ operation ->execute ($ this ->getPrimaryServer ()),
53
+ );
52
54
},
53
55
function (array $ event ) use ($ expectedSort ): void {
54
56
$ this ->assertEquals ($ expectedSort , $ event ['started ' ]->getCommand ()->sort ?? null );
Original file line number Diff line number Diff line change 36
36
use function sprintf ;
37
37
use function strtr ;
38
38
39
+ use const E_DEPRECATED ;
39
40
use const E_USER_DEPRECATED ;
40
41
41
42
abstract class TestCase extends BaseTestCase
@@ -171,7 +172,7 @@ protected function assertDeprecated(callable $execution): void
171
172
172
173
set_error_handler (function ($ errno , $ errstr ) use (&$ errors ): void {
173
174
$ errors [] = $ errstr ;
174
- }, E_USER_DEPRECATED );
175
+ }, E_USER_DEPRECATED | E_DEPRECATED );
175
176
176
177
try {
177
178
call_user_func ($ execution );
You can’t perform that action at this time.
0 commit comments