Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
[test] Use environment variables instead constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed May 29, 2015
1 parent 90438fa commit 65080af
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
.travis.yml export-ignore
.php_cs export-ignore
phpunit.xml.dist export-ignore
phpunit.xml.travis export-ignore
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ install:
- travis_retry composer install --no-interaction --ignore-platform-reqs

script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit -c phpunit.xml.travis --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit -c phpunit.xml.travis ; fi
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi

after_script:
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
functionality works as expected. Such tests include those for
Zend\Soap and Zend\Session, which require that headers not be sent
in order to work. -->
<const name="TESTS_ZEND_OB_ENABLED" value="false" />
<env name="TESTS_ZEND_OB_ENABLED" value="false" />


</php>
Expand Down
35 changes: 0 additions & 35 deletions phpunit.xml.travis

This file was deleted.

0 comments on commit 65080af

Please sign in to comment.