Skip to content

Commit bdfe1fc

Browse files
authored
Merge pull request php-curl-class#495 from zachborboa/master
Fix hhvm-nightly unit test failure
2 parents 8156a3f + 1d8c3f0 commit bdfe1fc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ public function testPostRedirectGetReuseObjectIncompatibleEngine()
482482
$this->markTestSkipped();
483483
}
484484

485+
if (getenv('TRAVIS_PHP_VERSION') === 'hhvm-nightly') {
486+
$this->markTestSkipped();
487+
}
488+
485489
try {
486490
// Follow 303 redirection with POST
487491
$test = new Test();

tests/before_script.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,16 @@ EOF
9595
root="${script_dir}/PHPCurlClass"
9696
sudo cp -v "${root}/"* "/usr/share/nginx/html/"
9797

98-
phpunit_shim
99-
10098
# Use an older version of PHPUnit for HHVM builds so that unit tests can be
10199
# started. HHVM 3.18 (PHP_VERSION=PHP 5.6.99-hhvm) is the last version to
102100
# run on Trusty yet PHPUnit 6 requires PHP 7.0 or PHP 7.1.
103101
# Avoids error:
104102
# This version of PHPUnit is supported on PHP 7.0 and PHP 7.1.
105103
# You are using PHP 5.6.99-hhvm (/usr/bin/hhvm).
106-
composer require phpunit/phpunit:5.7.*
104+
if [[ "${TRAVIS_PHP_VERSION}" == "hhvm" ]]; then
105+
phpunit_shim
106+
composer require phpunit/phpunit:5.7.*
107+
fi
107108
elif [[ "${TRAVIS_PHP_VERSION}" == "nightly" ]]; then
108109
php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &
109110
fi

0 commit comments

Comments
 (0)