Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #31 from stojg/php52-unittest-fixes

MINOR Skipping test when PHP Version is lower than 5.3.2
  • Loading branch information...
commit 49866b25a2192f5b6ba04e3d7c5a9f91d1911c33 2 parents 51a81bb + a3a50b7
@sminnee sminnee 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.