Commit f5c25e08 by Carsten Brandt

travis memcache env check: try again

parent a75c07be
...@@ -29,8 +29,8 @@ class MemCacheTest extends CacheTestCase ...@@ -29,8 +29,8 @@ class MemCacheTest extends CacheTestCase
public function testExpire() public function testExpire()
{ {
print_r($_ENV); echo getenv('TRAVIS');
if (isset($_ENV['TRAVIS']) && $_ENV['TRAVIS']) { if (($env = getenv('TRAVIS')) !== false && $env == 'true') {
$this->markTestSkipped('Can not reliably test memcache expiry on travis-ci.'); $this->markTestSkipped('Can not reliably test memcache expiry on travis-ci.');
} }
parent::testExpire(); parent::testExpire();
......
...@@ -29,8 +29,8 @@ class MemCachedTest extends CacheTestCase ...@@ -29,8 +29,8 @@ class MemCachedTest extends CacheTestCase
public function testExpire() public function testExpire()
{ {
print_r($_ENV); echo getenv('TRAVIS');
if (isset($_ENV['TRAVIS']) && $_ENV['TRAVIS']) { if (($env = getenv('TRAVIS')) !== false && $env == 'true') {
$this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.'); $this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.');
} }
parent::testExpire(); parent::testExpire();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment