浏览代码

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

Kris Wallsmith 14 年之前
父节点
当前提交
9b3ce98432
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Symfony/Tests/Component/Validator/Mapping/Cache/ApcCacheTest.php

+ 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.');
         }
     }