Browse Source

Merge branch 'master' of github.com:yiisoft/yii2 into email-swift-2

tags/2.0.0-beta
Paul Klimov 11 years ago
parent
commit
4c27d887ca
  1. 3
      tests/unit/bootstrap.php
  2. 8
      tests/unit/framework/caching/MemCacheTest.php
  3. 8
      tests/unit/framework/caching/MemCachedTest.php

3
tests/unit/bootstrap.php

@ -1,5 +1,8 @@
<?php <?php
// ensure we get report on all possible php errors
error_reporting(-1);
define('YII_ENABLE_ERROR_HANDLER', false); define('YII_ENABLE_ERROR_HANDLER', false);
define('YII_DEBUG', true); define('YII_DEBUG', true);
$_SERVER['SCRIPT_NAME'] = '/' . __DIR__; $_SERVER['SCRIPT_NAME'] = '/' . __DIR__;

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

@ -26,4 +26,12 @@ class MemCacheTest extends CacheTestCase
} }
return $this->_cacheInstance; return $this->_cacheInstance;
} }
public function testExpire()
{
if (getenv('TRAVIS') == 'true') {
$this->markTestSkipped('Can not reliably test memcache expiry on travis-ci.');
}
parent::testExpire();
}
} }

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

@ -26,4 +26,12 @@ class MemCachedTest extends CacheTestCase
} }
return $this->_cacheInstance; return $this->_cacheInstance;
} }
public function testExpire()
{
if (getenv('TRAVIS') == 'true') {
$this->markTestSkipped('Can not reliably test memcached expiry on travis-ci.');
}
parent::testExpire();
}
} }

Loading…
Cancel
Save