make apc class loader testable against apcu without apc bc layer

This commit is contained in:
Tobias Schultze 2016-01-25 14:16:04 +01:00
parent 778e4f6302
commit 24160b3a2f

View File

@ -14,15 +14,12 @@ namespace Symfony\Component\ClassLoader\Tests;
use Symfony\Component\ClassLoader\ApcClassLoader;
use Symfony\Component\ClassLoader\ClassLoader;
/**
* @requires extension apc
*/
class ApcClassLoaderTest extends \PHPUnit_Framework_TestCase
{
protected function setUp()
{
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 not enabled.');
} else {
apcu_clear_cache();
}