From d4447a53fab90e21ec93e9e120e452659a7f5b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 14:57:27 +0100 Subject: [PATCH] Include more verbose error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- test/Environment_test.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Environment_test.php b/test/Environment_test.php index c68c814826..c91e553e91 100644 --- a/test/Environment_test.php +++ b/test/Environment_test.php @@ -39,7 +39,7 @@ class Environment_Test extends PHPUnit_Framework_TestCase public function testMySQL() { if (!extension_loaded('pdo_mysql')) { - $this->markTestSkipped('pdo_myql is missing'); + $this->markTestSkipped('pdo_mysql is missing'); } try { $pdo = new PDO( @@ -49,7 +49,7 @@ class Environment_Test extends PHPUnit_Framework_TestCase ); $this->assertNull( $pdo->errorCode(), - "Error when trying to connect to database" + "Error when trying to connect to database: " . $pdo->errorInfo()[2] ); //$pdo->beginTransaction(); @@ -58,7 +58,7 @@ class Environment_Test extends PHPUnit_Framework_TestCase $this->assertEquals( 0, $pdo->errorCode(), - 'Error trying to show tables for database' + 'Error trying to show tables for database: ' . $pdo->errorInfo()[2] ); } catch (Exception $e) {