]> granicus.if.org Git - php/commitdiff
Fix test
authorJohannes Schlüter <johannes@php.net>
Wed, 1 Oct 2008 19:45:02 +0000 (19:45 +0000)
committerJohannes Schlüter <johannes@php.net>
Wed, 1 Oct 2008 19:45:02 +0000 (19:45 +0000)
ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt

index 8e978a279c8f9cafcb86a19c638fe1a65b71097c..30e7bda479a6385ed0a9ef356d635f3611b25aa0 100644 (file)
@@ -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!