File tree 3 files changed +7
-27
lines changed
3 files changed +7
-27
lines changed Original file line number Diff line number Diff line change 16
16
"php" : " ^5.5 || ^7.0 || ^8.0" ,
17
17
"ext-dom" : " *" ,
18
18
"ext-libxml" : " *" ,
19
- "phpunit/phpunit" : " ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0" ,
19
+ "phpunit/phpunit" : " ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0 " ,
20
20
"phpunitgoodpractices/polyfill" : " ^1.4"
21
21
},
22
- "require-dev" : {
23
- "johnkary/phpunit-speedtrap" : " ^1.1 || ^2.0 || ^3.0" ,
24
- "symfony/phpunit-bridge" : " ^3.2.2 || ^4.0"
25
- },
26
22
"autoload" : {
27
23
"psr-4" : {
28
24
"PhpCsFixer\\ PhpunitConstraintXmlMatchesXsd\\ " : " src/"
Original file line number Diff line number Diff line change 4
4
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
5
xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
6
6
backupGlobals =" false"
7
- backupStaticAttributes =" false"
8
7
beStrictAboutChangesToGlobalState =" true"
9
8
beStrictAboutOutputDuringTests =" true"
10
9
beStrictAboutTestsThatDoNotTestAnything =" true"
11
10
beStrictAboutTodoAnnotatedTests =" true"
12
11
bootstrap =" ./vendor/autoload.php"
13
12
colors =" true"
14
13
columns =" max"
15
- convertErrorsToExceptions =" true"
16
- convertNoticesToExceptions =" true"
17
- convertWarningsToExceptions =" true"
18
14
enforceTimeLimit =" true"
19
15
processIsolation =" false"
20
16
stopOnFailure =" false"
21
- verbose =" true"
22
17
>
23
18
<testsuites >
24
19
<testsuite name =" all" >
25
20
<directory >./tests</directory >
26
21
</testsuite >
27
22
</testsuites >
28
23
29
- <filter >
30
- <whitelist >
24
+ <coverage >
25
+ <include >
31
26
<directory >./src</directory >
32
- </whitelist >
33
- </filter >
34
-
35
- <listeners >
36
- <listener class =" JohnKary\PHPUnit\Listener\SpeedTrapListener" >
37
- <arguments >
38
- <array >
39
- <element key =" slowThreshold" >
40
- <integer >100</integer >
41
- </element >
42
- </array >
43
- </arguments >
44
- </listener >
45
- <listener class =" Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
46
- </listeners >
27
+ </include >
28
+ </coverage >
47
29
</phpunit >
Original file line number Diff line number Diff line change @@ -150,6 +150,8 @@ private function expectExceptionMessageRegex($pattern)
150
150
{
151
151
if (method_exists ($ this , 'expectExceptionMessageRegExp ' )) {
152
152
$ this ->expectExceptionMessageRegExp ($ pattern );
153
+ } elseif (method_exists ($ this , 'expectExceptionMessageMatches ' )) {
154
+ $ this ->expectExceptionMessageMatches ($ pattern );
153
155
} elseif (method_exists ($ this , 'expectDeprecationMessageMatches ' )) {
154
156
$ this ->expectDeprecationMessageMatches ($ pattern );
155
157
} else {
You can’t perform that action at this time.
0 commit comments