Skip to content
This repository
Browse code

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
Sam Minnée sminnee authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 tests/model/SiteTreeTest.php
4 tests/model/SiteTreeTest.php
@@ -829,6 +829,10 @@ function testAllowedChildrenValidation() {
829 829 }
830 830
831 831 function testClassDropdown() {
  832 + if(version_compare(PHP_VERSION, '5.3.2', '<')){
  833 + // @link http://www.php.net/manual/en/reflectionmethod.setaccessible.php
  834 + $this->markTestSkipped('Need PHP 5.3.2 to run this test.');
  835 + }
832 836 $sitetree = new SiteTree();
833 837 $method = new ReflectionMethod($sitetree, 'getClassDropdown');
834 838 $method->setAccessible(true);

0 comments on commit 49866b2

Please sign in to comment.
Something went wrong with that request. Please try again.