File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 14
14
"php" : " ^7.1"
15
15
},
16
16
"require-dev" : {
17
+ "phpstan/phpstan" : " ^0.9.1" ,
18
+ "phpstan/phpstan-phpunit" : " ^0.9.3" ,
17
19
"phpunit/phpunit" : " ^6.5" ,
18
20
"roave/security-advisories" : " dev-master" ,
19
21
"slam/php-cs-fixer-extensions" : " ^1.12" ,
20
22
"slam/php-debug-r" : " ^1.2" ,
21
- "symfony/console" : " ^4.0"
23
+ "slam/phpstan-extensions" : " ^1.0" ,
24
+ "symfony/console" : " ^4.0" ,
25
+ "thecodingmachine/phpstan-strict-rules" : " ^0.9.0"
22
26
},
23
27
"autoload" : {
24
28
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ includes :
2
+ - vendor/phpstan/phpstan/conf/config.levelmax.neon
3
+ - vendor/phpstan/phpstan-phpunit/extension.neon
4
+ - vendor/slam/phpstan-extensions/conf/slam-rules.neon
5
+ - vendor/slam/phpstan-extensions/conf/thecodingmachine-rules.neon
6
+
7
+ parameters :
8
+ ignoreErrors :
9
+ - ' #Class Doctrine\\Common\\Util\\Debug not found #'
10
+ - '#Call to static method export\ (\ ) on an unknown class Doctrine\\Common\\Util\\Debug #'
11
+ - ' #Constant ROOT_PATH not found #'
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ final class ErrorHandlerTest extends TestCase
13
13
{
14
14
private $ backupErrorLog ;
15
15
private $ errorLog ;
16
+ private $ exception ;
17
+ private $ emailsSent ;
18
+ private $ errorHandler ;
16
19
17
20
protected function setUp ()
18
21
{
@@ -104,7 +107,7 @@ public function testScream()
104
107
105
108
$ warningMessage = \uniqid ('warning_ ' );
106
109
$ this ->expectException (ErrorException::class);
107
- $ this ->expectExceptionMessageRegexp (\sprintf ('/%s/ ' , \preg_quote ($ warningMessage )));
110
+ $ this ->expectExceptionMessageRegExp (\sprintf ('/%s/ ' , \preg_quote ($ warningMessage )));
108
111
109
112
@ \trigger_error ($ warningMessage , \E_USER_WARNING );
110
113
}
You can’t perform that action at this time.
0 commit comments