diff --git a/test/classes/PMA_Advisor_test.php b/test/classes/PMA_Advisor_test.php index 8d65e40f8e..09dc52cfc5 100644 --- a/test/classes/PMA_Advisor_test.php +++ b/test/classes/PMA_Advisor_test.php @@ -72,6 +72,10 @@ class Advisor_test extends PHPUnit_Framework_TestCase */ public function testAddRule($rule, $expected, $error) { + /* PHP 5.2 doesn't properly catch errors from eval */ + if (!is_null($error) && substr(PHP_VERSION, 0, 3) === '5.2') { + $this->markTestSkipped('Not supported on PHP 5.2'); + } $advisor = new Advisor(); $parseResult = $advisor->parseRulesFile(); $this->assertEquals($parseResult['errors'], array());