From fed9b35095778d5e779fcf39f683af6fcdf653e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schl=C3=BCter?= Date: Wed, 1 Oct 2008 19:45:02 +0000 Subject: [PATCH] Fix test --- ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt b/ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt index 8e978a279c8..30e7bda479a 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt @@ -18,17 +18,13 @@ $db = MySQLPDOTest::factory(); ob_end_clean(); /* PDO Driver for MySQL, client library version => 6.0.3-alpha */ - $expected = sprintf('PDO Driver for MySQL, client library version => %s', + $expected = sprintf('Client API version => %s', $db->getAttribute(PDO::ATTR_CLIENT_VERSION)); if (false === stristr($tmp, $expected)) { - // maybe its PDO_MYSQLND - $expected = sprintf('PDO Driver for MySQL, mysql native driver version => %s', - $db->getAttribute(PDO::ATTR_CLIENT_VERSION)); - if (false === stristr($tmp, $expected)) - printf("[001] Cannot find MySQL PDO driver line in phpinfo() output\n"); + printf("[001] Cannot find MySQL PDO driver line in phpinfo() output\n"); } print "done!"; --EXPECT-- -done! \ No newline at end of file +done!