[Classloader] Fixed tests teardown when apc is not available
This commit is contained in:
parent
3ab5a51e17
commit
f86bab78ff
@ -25,13 +25,17 @@ class ApcUniversalClassLoaderTest extends \PHPUnit_Framework_TestCase
|
|||||||
if (!(ini_get('apc.enabled') && ini_get('apc.enable_cli'))) {
|
if (!(ini_get('apc.enabled') && ini_get('apc.enable_cli'))) {
|
||||||
$this->markTestSkipped('The apc extension is available, but not enabled.');
|
$this->markTestSkipped('The apc extension is available, but not enabled.');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
apc_clear_cache('user');
|
{
|
||||||
|
apc_clear_cache('user');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
{
|
{
|
||||||
apc_clear_cache('user');
|
if (ini_get('apc.enabled') && ini_get('apc.enable_cli')) {
|
||||||
|
apc_clear_cache('user');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testConstructor()
|
public function testConstructor()
|
||||||
|
Reference in New Issue
Block a user