Skip to content

Commit

Permalink
Added phpstan mockery extension so I can run checks against tests fol…
Browse files Browse the repository at this point in the history
…der without it losing its mind.
  • Loading branch information
RobDWaller committed May 1, 2019
1 parent 28b12d6 commit 7795386
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ before_script:

script:
- vendor/bin/phpcs --standard=psr12 src
- vendor/bin/phpstan analyse -l 7 src
- vendor/bin/phpstan analyse -l 7 src tests
- vendor/bin/phpmd src text ruleset.xml
- vendor/bin/phpunit --coverage-clover=coverage.xml

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"require-dev": {
"phpunit/phpunit": "^7.0",
"phpstan/phpstan": "^0.10",
"phpstan/phpstan-mockery": "^0.10",
"phpmd/phpmd": "2.6.*",
"squizlabs/php_codesniffer": "^3.0",
"mockery/mockery": "^1.2"
Expand Down
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
includes:
- vendor/phpstan/phpstan-mockery/extension.neon

0 comments on commit 7795386

Please sign in to comment.