Skip to content

Commit

Permalink
Added launcher for phpunit, force error_reporting(E_ALL | E_STRICT) i…
Browse files Browse the repository at this point in the history
…n travis
  • Loading branch information
bkrukowski committed Sep 26, 2018
1 parent 9e21616 commit 2b8d76c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ install:

before_script:
- vendor/bin/phpunit-4.8-fixer
- if [[ "$DEPENDENCIES" = 'low' ]]; then export PHP_ARGS=$(php -r "echo '-d error_reporting=', E_ALL ^ (E_DEPRECATED | E_USER_DEPRECATED);"); else export PHP_ARGS=''; fi
- if [[ "$DEPENDENCIES" = 'low' ]]; then export PHP_ARGS=$(php -r "echo '-d error_reporting=', E_ALL ^ (E_DEPRECATED | E_USER_DEPRECATED);"); else export PHP_ARGS=$(php -r "echo '-d error_reporting=', E_ALL ^ (E_DEPRECATED | E_STRICT);"); fi

script:
- if [[ "$RUN_CS_FIXER" = "true" ]]; then php -n ${PHP_CS_FIXER} --diff --dry-run -v --allow-risky=yes fix; fi
Expand Down
6 changes: 6 additions & 0 deletions bin/phpunit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PHP_ARGS=$(php -r "echo '-d error_reporting=', E_ALL ^ (E_DEPRECATED | E_USER_DEPRECATED);")

php ${PHP_ARGS} ${DIR}/../vendor/bin/phpunit

0 comments on commit 2b8d76c

Please sign in to comment.