mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Skipping test when PHP Version is lower than 5.3.2
ReflectionMethod#setAccessible was released in PHP Version 5.3.2
This commit is contained in:
parent
51a81bb258
commit
a3a50b7b6f
@ -829,6 +829,10 @@ class SiteTreeTest extends SapphireTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testClassDropdown() {
|
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();
|
$sitetree = new SiteTree();
|
||||||
$method = new ReflectionMethod($sitetree, 'getClassDropdown');
|
$method = new ReflectionMethod($sitetree, 'getClassDropdown');
|
||||||
$method->setAccessible(true);
|
$method->setAccessible(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user