Commit 702c7d7 1 parent 1768e71 commit 702c7d7 Copy full SHA for 702c7d7
File tree 2 files changed +2
-12
lines changed
2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 4
4
bootstrap =" ./vendor/autoload.php"
5
5
beStrictAboutOutputDuringTests =" true"
6
6
beStrictAboutTestsThatDoNotTestAnything =" true"
7
+ failOnWarning =" true"
7
8
colors =" true" >
8
9
<testsuites >
9
10
<testsuite name =" laminas-validator Test Suite" >
Original file line number Diff line number Diff line change 18
18
use function implode ;
19
19
use function next ;
20
20
use function preg_replace ;
21
- use function restore_error_handler ;
22
21
use function set_error_handler ;
23
22
use function sprintf ;
24
23
use function str_repeat ;
25
24
use function strstr ;
26
25
27
26
use const E_USER_NOTICE ;
28
- use const E_WARNING ;
29
27
30
28
/**
31
29
* @group Laminas_Validator
@@ -934,15 +932,6 @@ public function testWillNotCheckEmptyDeepMxChecks(): void
934
932
'useDeepMxCheck ' => true ,
935
933
]);
936
934
937
- $ called = false ;
938
- /** @psalm-suppress InvalidArgument **/
939
- set_error_handler (static function () use (&$ called ) {
940
- $ called = true ;
941
- }, E_WARNING );
942
-
943
- $ validator ->isValid ('jon@example.com ' );
944
-
945
- restore_error_handler ();
946
- $ this ->assertFalse ($ called );
935
+ $ this ->assertFalse ($ validator ->isValid ('jon@example.com ' ));
947
936
}
948
937
}
You can’t perform that action at this time.
0 commit comments