Skip to content

Commit

Permalink
minor symfony#90 Fix CI failures with Xdebug 3 and test on PHP 7.4/8.…
Browse files Browse the repository at this point in the history
…0 as well (derrabus)

This PR was merged into the 2.0-dev branch.

Discussion
----------

Fix CI failures with Xdebug 3 and test on PHP 7.4/8.0 as well

Commits
-------

a6697fd Fix CI failures with Xdebug 3 and test on PHP 7.4/8.0 as well
  • Loading branch information
derrabus committed Feb 16, 2021
2 parents c62f7d0 + a6697fd commit 488df9b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Tests/Factory/AbstractHttpMessageFactoryTest.php
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -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": {
Expand Down

0 comments on commit 488df9b

Please sign in to comment.