ソースを参照

ReflectionMethod::setAccessible is only available in PHP 5.3.2 or higher, so skip test in PHP 5.2

Rob Allen 11 年 前
コミット
36db231549
1 ファイル変更4 行追加0 行削除
  1. 4 0
      tests/Zend/LocaleTest.php

+ 4 - 0
tests/Zend/LocaleTest.php

@@ -893,6 +893,10 @@ class Zend_LocaleTest extends PHPUnit_Framework_TestCase
 
     public function testEachDataFileShouldPresentAsLocaleData()
     {
+        if (version_compare(PHP_VERSION, '5.3.2', 'lt')) {
+            $this->markTestSkipped('ReflectionMethod::setAccessible can only be run under 5.3.2 or later');
+        }
+
         $dir = new DirectoryIterator(
             dirname(__FILE__) . '/../../library/Zend/Locale/Data'
         );