From e167f5ade97bdf65c941da37ab37d115893f7b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 14:30:05 +0100 Subject: [PATCH] Make the test skip without pdo_mysql 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, 3 insertions(+) diff --git a/test/Environment_test.php b/test/Environment_test.php index 83af26d058..c68c814826 100644 --- a/test/Environment_test.php +++ b/test/Environment_test.php @@ -38,6 +38,9 @@ class Environment_Test extends PHPUnit_Framework_TestCase */ public function testMySQL() { + if (!extension_loaded('pdo_mysql')) { + $this->markTestSkipped('pdo_myql is missing'); + } try { $pdo = new PDO( "mysql:host=" . TESTSUITE_SERVER . ";dbname=" . TESTSUITE_DATABASE,