diff --git a/.travis.yml b/.travis.yml index d171c00..5409284 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,22 +8,27 @@ cache: env: global: - PHPUNIT_FLAGS="-v" + - SYMFONY_PHPUNIT_VERSION=9.5 - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" matrix: fast_finish: true include: # Minimum supported dependencies with the latest and oldest PHP version - - php: 7.3 + - php: 7.4 env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors" - php: 7.1 + env: SYMFONY_PHPUNIT_VERSION=7.5 - php: 7.2 + env: SYMFONY_PHPUNIT_VERSION=8.5 - php: 7.3 - env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" + - php: 7.4 + env: COVERAGE=true PHPUNIT_FLAGS="-v --coverage-text" XDEBUG_MODE=coverage + - php: 8.0 # Latest commit to master - - php: 7.3 + - php: 7.4 env: STABILITY="dev" allow_failures: diff --git a/Tests/Factory/AbstractHttpMessageFactoryTest.php b/Tests/Factory/AbstractHttpMessageFactoryTest.php index d43f7fb..2176ae8 100644 --- a/Tests/Factory/AbstractHttpMessageFactoryTest.php +++ b/Tests/Factory/AbstractHttpMessageFactoryTest.php @@ -152,7 +152,7 @@ public function testCreateResponse() $cookieHeader = $psrResponse->getHeader('Set-Cookie'); $this->assertIsArray($cookieHeader); $this->assertCount(1, $cookieHeader); - $this->assertRegExp('{city=Lille; expires=Wed, 13-Jan-2021 22:23:01 GMT;( max-age=\d+;)? path=/; httponly}i', $cookieHeader[0]); + $this->assertMatchesRegularExpression('{city=Lille; expires=Wed, 13-Jan-2021 22:23:01 GMT;( max-age=\d+;)? path=/; httponly}i', $cookieHeader[0]); } public function testCreateResponseFromStreamed() diff --git a/composer.json b/composer.json index bf201cd..6fa97f0 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "symfony/http-foundation": "^4.4 || ^5.0" }, "require-dev": { - "symfony/phpunit-bridge": "^4.4 || ^5.0", + "symfony/phpunit-bridge": "^4.4.19 || ^5.2", "nyholm/psr7": "^1.1" }, "suggest": {