Sfoglia il codice sorgente

[Validator] added test skip if APC is not enabled for the CLI

Kris Wallsmith 14 anni fa
parent
commit
9b3ce98432

+ 1 - 1
tests/Symfony/Tests/Component/Validator/Mapping/Cache/ApcCacheTest.php

@@ -17,7 +17,7 @@ class ApcCacheTest extends \PHPUnit_Framework_TestCase
 {
     protected function setUp()
     {
-        if (!extension_loaded('apc')) {
+        if (!extension_loaded('apc') || !ini_get('apc.enable_cli')) {
             $this->markTestSkipped('APC is not loaded.');
         }
     }