Skip to content

Commit

Permalink
Enable assertions in test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Feb 20, 2022
1 parent 5b8d8b2 commit 3c159ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
composer info -D
- name: Run tests
run: vendor/bin/phpunit ${{ matrix.phpunit-flags }}
run: vendor/bin/phpunit -dzend.assertions=1 ${{ matrix.phpunit-flags }}

- name: Run style fixer
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ phpunit.xml
vendor
humbug.json
.php_cs.cache
.phpunit.result.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"amphp/php-cs-fixer-config": "^2-dev"
},
"scripts": {
"test": "php vendor/bin/phpunit",
"test": "php -dzend.assertions=1 vendor/bin/phpunit",
"code-style": "php vendor/bin/php-cs-fixer fix"
},
"extra": {
Expand Down

0 comments on commit 3c159ef

Please sign in to comment.