File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 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 {
4848 ['modifiers ' => $ modifiers ],
4949 );
5050
51- $ operation ->execute ($ this ->getPrimaryServer ());
51+ $ this ->assertDeprecated (
52+ fn () => $ operation ->execute ($ this ->getPrimaryServer ()),
53+ );
5254 },
5355 function (array $ event ) use ($ expectedSort ): void {
5456 $ this ->assertEquals ($ expectedSort , $ event ['started ' ]->getCommand ()->sort ?? null );
Original file line number Diff line number Diff line change 3636use function sprintf ;
3737use function strtr ;
3838
39+ use const E_DEPRECATED ;
3940use const E_USER_DEPRECATED ;
4041
4142abstract class TestCase extends BaseTestCase
@@ -171,7 +172,7 @@ protected function assertDeprecated(callable $execution): void
171172
172173 set_error_handler (function ($ errno , $ errstr ) use (&$ errors ): void {
173174 $ errors [] = $ errstr ;
174- }, E_USER_DEPRECATED );
175+ }, E_USER_DEPRECATED | E_DEPRECATED );
175176
176177 try {
177178 call_user_func ($ execution );
You can’t perform that action at this time.
0 commit comments