Skip not supported test on PHP 5.2

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-28 14:50:34 +01:00
parent 1e5d12abcd
commit 7ca28f105b

View File

@ -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());