From 15a9b04fccc373ce0ff78c154a09ce8077c69677 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 29 Oct 2013 13:54:55 +0100 Subject: [PATCH] simplified travis env check for memcache(d) --- tests/unit/framework/caching/MemCacheTest.php | 3 +-- tests/unit/framework/caching/MemCachedTest.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/unit/framework/caching/MemCacheTest.php b/tests/unit/framework/caching/MemCacheTest.php index 47978e3..e489a39 100644 --- a/tests/unit/framework/caching/MemCacheTest.php +++ b/tests/unit/framework/caching/MemCacheTest.php @@ -29,8 +29,7 @@ class MemCacheTest extends CacheTestCase public function testExpire() { - echo getenv('TRAVIS'); - if (($env = getenv('TRAVIS')) !== false && $env == 'true') { + if (getenv('TRAVIS') == '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 b9a1163..57ee110 100644 --- a/tests/unit/framework/caching/MemCachedTest.php +++ b/tests/unit/framework/caching/MemCachedTest.php @@ -29,8 +29,7 @@ class MemCachedTest extends CacheTestCase public function testExpire() { - echo getenv('TRAVIS'); - if (($env = getenv('TRAVIS')) !== false && $env == 'true') { + if (getenv('TRAVIS') == 'true') { $this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.'); } parent::testExpire();