Fix PHP 5.3 test and PHP 8 test runs

For some reason Xdebug causes a seg fault under PHP 8 on Travis CI.
This commit is contained in:
Till Krüss
2021-04-04 12:33:59 -07:00
committed by GitHub
parent 35dd44b222
commit 8fee6ce8c3
3 changed files with 7 additions and 5 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ branches:
before_install:
- docker run -d --rm -p 127.0.0.1:6379:6379 redis:3
before_script:
- phpenv config-rm xdebug.ini
- composer self-update
- composer install --no-interaction --prefer-source --dev
script:
@@ -30,6 +31,7 @@ matrix:
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly # PHP 8.0.0-dev
- php: 8.0
- php: nightly
allow_failures:
- php: nightly
-4
View File
@@ -36,10 +36,6 @@
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout" />
</logging>
<php>
<!-- Redis -->
<const name="REDIS_SERVER_VERSION" value="3.2" />
@@ -66,6 +66,10 @@ class ReplicationOptionTest extends PredisTestCase
*/
public function testDoesNotAcceptValuesThatCanBeInterpretedAsBooleanFalse($value)
{
if (version_compare(PHP_VERSION, '5.4', '<')) {
$this->markTestSkipped('Skip test, because.');
}
$option = new ReplicationOption();
$options = $this->getMock('Predis\Configuration\OptionsInterface');