diff --git a/.travis.yml b/.travis.yml index ef460a2a..a1c5395d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,22 @@ language: php -sudo: false +addons: + chrome: stable cache: directories: - $HOME/.composer/cache env: + global: + - DISPLAY=:99.0 + - CHROME_DRIVER_VERSION=2.36 + - SELENIUM_VERSION=3.6.0 matrix: - - DEPS=high - - DEPS=low + - DEPS=high PROFILE=default + - DEPS=low PROFILE=default + - DEPS=high PROFILE=symfony2 + - DEPS=low PROFILE=symfony2 php: - 5.5 @@ -18,8 +25,6 @@ php: - 7.1 - 7.2 - nightly - - hhvm - - hhvm-nightly matrix: allow_failures: @@ -29,7 +34,6 @@ matrix: fast_finish: true before_script: - - export DISPLAY=:99.0 CHROME_DRIVER_VERSION=2.33 SELENIUM_VERSION=3.6.0 - Xvfb $DISPLAY -extension RANDR &> /dev/null & - wget "https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip" @@ -42,9 +46,8 @@ before_script: - composer install - test "$DEPS" == "low" || composer update --prefer-lowest - - test "$DEPS" == "high" || composer update atoum/atoum + - test ${TRAVIS_PHP_VERSION:0:1} -lt 7 || composer update atoum/atoum script: - ./bin/atoum - - ./bin/behat -fprogress --tags='~@user' --no-interaction - - ./bin/behat -fprogress --tags='~@user' --no-interaction --profile=symfony2 + - ./bin/behat -fprogress --tags="~@user&&~@>php${TRAVIS_PHP_VERSION:0:3}" --no-interaction --profile=$PROFILE diff --git a/composer.json b/composer.json index 173274b2..7e39dd21 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ "require": { "php": ">=5.5", "behat/behat": "^3.0.13", - "behat/mink-extension": "^2.0", + "behat/mink-extension": "^2.3.1", "justinrainbow/json-schema": "^5.0", "symfony/property-access": "^2.3|^3.0|^4.0", "symfony/http-foundation": "^2.3|^3.0|^4.0", diff --git a/tests/features/rest.feature b/tests/features/rest.feature index a84bcc4f..35be5961 100644 --- a/tests/features/rest.feature +++ b/tests/features/rest.feature @@ -88,6 +88,7 @@ Feature: Testing RESTContext Congratulations, you've correctly set up your apache environment. """ + @>php5.5 Scenario: Set content headers in POST request When I add "Content-Type" header equal to "xxx" When I send a "POST" request to "rest/index.php" with body: