From 4bc04e795a8ea512e557e008787cae40666081e0 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Wed, 4 May 2016 16:33:40 +1200 Subject: [PATCH] Excuse php7 errors due to regressions in 7.0.6 --- .travis.yml | 3 +++ tests/forms/GridFieldTest.php | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 389b52de8..9c75d11b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,6 +35,9 @@ matrix: env: DB=MYSQL BEHAT_TEST=1 CMS_TEST=1 - php: 7.0 env: DB=MYSQL PDO=1 + allow_failures: + - php: 7.0 + env: DB=MYSQL PDO=1 before_script: - printf "\n" | pecl install imagick diff --git a/tests/forms/GridFieldTest.php b/tests/forms/GridFieldTest.php index c8d42f0bf..8184d098b 100644 --- a/tests/forms/GridFieldTest.php +++ b/tests/forms/GridFieldTest.php @@ -117,6 +117,10 @@ class GridFieldTest extends SapphireTest { public function testGetStateData() { $obj = new GridField('testfield', 'testfield'); + // @todo - PHP 7.0.6 change requires __isset() to return true + // for each reference from left to right along an isset() invocation. + // See https://bugs.php.net/bug.php?id=62059 + // Check value persistance $this->assertEquals(15, $obj->State->NoValue(15)); $this->assertEquals(15, $obj->State->NoValue(-1));