Explorar o código

[tests] skip apc test if not enabled

gedi %!s(int64=13) %!d(string=hai) anos
pai
achega
38a9ff15c3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/Gedmo/Mapping/TreeMappingTest.php

+ 4 - 0
tests/Gedmo/Mapping/TreeMappingTest.php

@@ -117,6 +117,10 @@ class TreeMappingTest extends \PHPUnit_Framework_TestCase
 
     public function testYamlMaterializedPathMapping()
     {
+        if (!extension_loaded('apc') || !ini_get('apc.enable_cli')) {
+            $this->markTestSkipped('APC extension is not loaded.');
+        }
+
         $meta = $this->em->getClassMetadata(self::YAML_MATERIALIZED_PATH_CATEGORY);
         $config = $this->listener->getConfiguration($this->em, $meta->name);