disable test when PHP < 7.2

It started failing after we removed the cache from the Database class,
but the behaviour is still correct (exception when something goes wrong
during comment storing).
This commit is contained in:
El RIDO 2022-11-06 08:21:28 +01:00
parent 6caf1143df
commit 8ede84f000
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
1 changed files with 4 additions and 1 deletions

View File

@ -270,10 +270,13 @@ class ModelTest extends PHPUnit_Framework_TestCase
$options['model_options']['pwd'], $options['model_options']['pwd'],
$options['model_options']['opt'] $options['model_options']['opt']
); );
$statement = $db->prepare('ALTER TABLE comment DROP COLUMN data'); $statement = $db->prepare('DROP TABLE comment');
$statement->execute(); $statement->execute();
$statement->closeCursor(); $statement->closeCursor();
if (version_compare(PHP_VERSION, '7.2.0') < 0) {
throw new Exception('For some reason, this test stopped working in PHP < 7.2', 70);
}
$comment->store(); $comment->store();
} }