Ver Fonte

[tests] skip apc test if not enabled

gedi há 13 anos atrás
pai
commit
38a9ff15c3
1 ficheiros alterados com 4 adições e 0 exclusões
  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);