Browse Source

simplified travis env check for memcache(d)

tags/2.0.0-alpha
Carsten Brandt 11 years ago
parent
commit
15a9b04fcc
  1. 3
      tests/unit/framework/caching/MemCacheTest.php
  2. 3
      tests/unit/framework/caching/MemCachedTest.php

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

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

Loading…
Cancel
Save