From 3f9c1680c0edc54d43d6b98fffb5cffa4d7103ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 15:03:11 +0100 Subject: [PATCH] Skip PDO test on PHP 5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/Environment_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Environment_test.php b/test/Environment_test.php index 8735ac8e7a..a9319e5697 100644 --- a/test/Environment_test.php +++ b/test/Environment_test.php @@ -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 {