From f5c25e0858014445303ee1ffba05d8efbff7d9c3 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 29 Oct 2013 13:49:00 +0100 Subject: [PATCH] travis memcache env check: try again --- tests/unit/framework/caching/MemCacheTest.php | 4 ++-- tests/unit/framework/caching/MemCachedTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/framework/caching/MemCacheTest.php b/tests/unit/framework/caching/MemCacheTest.php index 96f64e4..47978e3 100644 --- a/tests/unit/framework/caching/MemCacheTest.php +++ b/tests/unit/framework/caching/MemCacheTest.php @@ -29,8 +29,8 @@ class MemCacheTest extends CacheTestCase public function testExpire() { - print_r($_ENV); - if (isset($_ENV['TRAVIS']) && $_ENV['TRAVIS']) { + echo getenv('TRAVIS'); + if (($env = getenv('TRAVIS')) !== false && $env == 'true') { $this->markTestSkipped('Can not reliably test memcache expiry on travis-ci.'); } parent::testExpire(); diff --git a/tests/unit/framework/caching/MemCachedTest.php b/tests/unit/framework/caching/MemCachedTest.php index ca7baea..b9a1163 100644 --- a/tests/unit/framework/caching/MemCachedTest.php +++ b/tests/unit/framework/caching/MemCachedTest.php @@ -29,8 +29,8 @@ class MemCachedTest extends CacheTestCase public function testExpire() { - print_r($_ENV); - if (isset($_ENV['TRAVIS']) && $_ENV['TRAVIS']) { + echo getenv('TRAVIS'); + if (($env = getenv('TRAVIS')) !== false && $env == 'true') { $this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.'); } parent::testExpire();