Also check tests folder

This commit is contained in:
Jeremiah VALERIE 2018-08-31 10:55:59 +02:00
parent 6a4c815b6d
commit b5b27c95b1
No known key found for this signature in database
GPG Key ID: 668676FD50ADF244
2 changed files with 6 additions and 2 deletions

View File

@ -15,8 +15,9 @@
},
"require-dev": {
"doctrine/coding-standard": "^4.0",
"phpstan/phpstan": "^0.10.3",
"phpstan/phpstan-phpunit": "^0.10.0",
"phpunit/phpunit": "^7.2",
"phpstan/phpstan-shim": "^0.10",
"psr/http-message": "^1.0",
"react/promise": "2.*"
},
@ -42,6 +43,6 @@
},
"scripts": {
"lint" : "phpcs",
"static-analysis": "@php ./vendor/bin/phpstan.phar analyse --ansi -l 1 -c phpstan.neon src"
"static-analysis": "@php ./vendor/bin/phpstan analyse --ansi -l 1 -c phpstan.neon src tests"
}
}

View File

@ -0,0 +1,3 @@
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon