Skip to content

Commit

Permalink
Caching is only supported on PHP 5.5 or higher, make sure to skip tes…
Browse files Browse the repository at this point in the history
…t on PHP 5.4
  • Loading branch information
NielsLeenheer committed Feb 21, 2016
1 parent 443ef87 commit ded21ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ php:

before_script:
- composer self-update
- composer update --prefer-source
- composer update --ignore-platform-reqs --prefer-source
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then phpenv config-rm xdebug.ini; fi

script:
script:
- vendor/bin/phpcs --standard=PSR1,PSR2 -n src
- if [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then php bin/runner.php --show check; fi
- if [ "$TRAVIS_PHP_VERSION" != "5.6" ]; then vendor/bin/phpunit; fi
Expand All @@ -24,4 +24,4 @@ after_script:
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover runner.xml; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php ocular.phar code-coverage:upload --format=php-clover phpunit.xml; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then travis_retry php vendor/bin/coveralls -v; fi
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then travis_retry php vendor/bin/coveralls -v; fi
4 changes: 4 additions & 0 deletions tests/unit/CacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
*/
class CacheTest extends PHPUnit_Framework_TestCase
{
/**
* @requires PHP 5.5
*/

public function testCreatingParserWithoutArgumentsAndCallAnalyse()
{
function countCachedItems($pool) {
Expand Down

0 comments on commit ded21ff

Please sign in to comment.