Skip PDO test on PHP 5.2

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-28 15:03:11 +01:00
parent f9b36a377a
commit 3f9c1680c0

View File

@ -38,7 +38,8 @@ class Environment_Test extends PHPUnit_Framework_TestCase
*/
public function testMySQL()
{
if (!extension_loaded('pdo_mysql')) {
/* For some reason PDO doesn't work well on PHP 5.2 */
if (!extension_loaded('pdo_mysql') || substr(PHP_VERSION, 0, 3) === '5.2') {
$this->markTestSkipped('pdo_mysql is missing');
}
try {