Commit 15a9b04f by Carsten Brandt

simplified travis env check for memcache(d)

parent f5c25e08
...@@ -29,8 +29,7 @@ class MemCacheTest extends CacheTestCase ...@@ -29,8 +29,7 @@ class MemCacheTest extends CacheTestCase
public function testExpire() public function testExpire()
{ {
echo getenv('TRAVIS'); if (getenv('TRAVIS') == 'true') {
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,7 @@ class MemCachedTest extends CacheTestCase ...@@ -29,8 +29,7 @@ class MemCachedTest extends CacheTestCase
public function testExpire() public function testExpire()
{ {
echo getenv('TRAVIS'); if (getenv('TRAVIS') == 'true') {
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