From a3a50b7b6f2f3a3b3e18e828761204760a541a23 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Sat, 22 Oct 2011 15:36:27 +0200 Subject: [PATCH] MINOR Skipping test when PHP Version is lower than 5.3.2 ReflectionMethod#setAccessible was released in PHP Version 5.3.2 --- tests/model/SiteTreeTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/model/SiteTreeTest.php b/tests/model/SiteTreeTest.php index 1d519a78..001477e5 100644 --- a/tests/model/SiteTreeTest.php +++ b/tests/model/SiteTreeTest.php @@ -829,6 +829,10 @@ class SiteTreeTest extends SapphireTest { } function testClassDropdown() { + if(version_compare(PHP_VERSION, '5.3.2', '<')){ + // @link http://www.php.net/manual/en/reflectionmethod.setaccessible.php + $this->markTestSkipped('Need PHP 5.3.2 to run this test.'); + } $sitetree = new SiteTree(); $method = new ReflectionMethod($sitetree, 'getClassDropdown'); $method->setAccessible(true);