mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
simplified travis env check for memcache(d)
This commit is contained in:
@ -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();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user