Index: trunk/phase3/tests/phpunit/includes/installer/InstallerTest.php |
— | — | @@ -20,10 +20,14 @@ |
21 | 21 | $oldServer = $_SERVER; |
22 | 22 | $_SERVER = $input; |
23 | 23 | $rm = new ReflectionMethod( 'Installer_TestHelper', 'envCheckServer' ); |
24 | | - $rm->setAccessible( true ); |
25 | | - $rm->invoke( $installer ); |
26 | | - $_SERVER = $oldServer; |
27 | | - $this->assertEquals( $expected, $installer->getVar( 'wgServer' ), $description ); |
| 24 | + if( !method_exists( $rm, 'setAccessible' ) ) { |
| 25 | + $this->markTestIncomplete( "Test requires PHP 5.3.2 or above for ReflectionMethod::setAccessible" ); |
| 26 | + } else { |
| 27 | + $rm->setAccessible( true ); |
| 28 | + $rm->invoke( $installer ); |
| 29 | + $_SERVER = $oldServer; |
| 30 | + $this->assertEquals( $expected, $installer->getVar( 'wgServer' ), $description ); |
| 31 | + } |
28 | 32 | } |
29 | 33 | |
30 | 34 | function provideEnvCheckServer() { |