Browse Source

travis memcache env check: try again

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
f5c25e0858
  1. 4
      tests/unit/framework/caching/MemCacheTest.php
  2. 4
      tests/unit/framework/caching/MemCachedTest.php

4
tests/unit/framework/caching/MemCacheTest.php

@ -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();

4
tests/unit/framework/caching/MemCachedTest.php

@ -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();

Loading…
Cancel
Save