소스 검색

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