Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Skipping test when PHP Version is lower than 5.3.2

ReflectionMethod#setAccessible was released in PHP Version 5.3.2
  • Loading branch information...
commit a3a50b7b6f2f3a3b3e18e828761204760a541a23 1 parent 51a81bb
@slindqvist slindqvist authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/model/SiteTreeTest.php
View
4 tests/model/SiteTreeTest.php
@@ -829,6 +829,10 @@ function testAllowedChildrenValidation() {
}
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);
Please sign in to comment.
Something went wrong with that request. Please try again.