List:Commits« Previous MessageNext Message »
From:uwendel Date:March 4 2008 2:02pm
Subject:PHP mysqlnd svn commit: r1317 - trunk/tests/ext/pdo
View as plain text  
Author: uwendel
Date: 2008-03-04 15:02:09 +0100 (Tue, 04 Mar 2008)
New Revision: 1317

Modified:
   trunk/tests/ext/pdo/pdo_class_pdo_row_interface.phpt
   trunk/tests/ext/pdo/pdo_errorinfo.phpt
   trunk/tests/ext/pdo/pdo_get_attribute_statement_class.phpt
   trunk/tests/ext/pdo/pdo_get_available_drivers.phpt
Log:
php.net has fixed a few PDO issues, updating tests.


Modified: trunk/tests/ext/pdo/pdo_class_pdo_row_interface.phpt
===================================================================
--- trunk/tests/ext/pdo/pdo_class_pdo_row_interface.phpt	2008-03-03 17:33:51 UTC (rev
1316)
+++ trunk/tests/ext/pdo/pdo_class_pdo_row_interface.phpt	2008-03-04 14:02:09 UTC (rev
1317)
@@ -77,7 +77,7 @@
 Type
 string(6) "PDORow"
 Parent class
-string(6) "PDORow"
+bool(false)
 
 Methods:
 array(0) {

Modified: trunk/tests/ext/pdo/pdo_errorinfo.phpt
===================================================================
--- trunk/tests/ext/pdo/pdo_errorinfo.phpt	2008-03-03 17:33:51 UTC (rev 1316)
+++ trunk/tests/ext/pdo/pdo_errorinfo.phpt	2008-03-04 14:02:09 UTC (rev 1317)
@@ -70,8 +70,8 @@
 $tmp = $db->errorInfo();
 var_dump($tmp);
 
-if (false !== ($tmp = $db->errorInfo("too many arguments")))
-	printf("[002] Expecting boolean/false got %s/%s\n", $tmp, gettype($tmp));
+if (NULL !== ($tmp = $db->errorInfo("too many arguments")))
+	printf("[002] Expecting NULL got %s/%s\n", $tmp, gettype($tmp));
 
 $db->exec('CREATE TABLE test(id int NOT NULL PRIMARY KEY, val VARCHAR(10), grp
VARCHAR(10))');
 if (!check_error_info(3, $db))
@@ -113,6 +113,8 @@
   [0]=>
   string(0) ""
 }
+
+Warning: Wrong parameter count for PDO::errorInfo() in %s on line %d
 [003] Expecting three array elements got array (
   0 => '00000',
 )/array

Modified: trunk/tests/ext/pdo/pdo_get_attribute_statement_class.phpt
===================================================================
--- trunk/tests/ext/pdo/pdo_get_attribute_statement_class.phpt	2008-03-03 17:33:51 UTC
(rev 1316)
+++ trunk/tests/ext/pdo/pdo_get_attribute_statement_class.phpt	2008-03-04 14:02:09 UTC
(rev 1317)
@@ -17,5 +17,12 @@
 $db->setAttribute(PDO::ATTR_STATEMENT_CLASS, NULL);
 print "done!";
 ?>
+--BUGFREE_EXPECTF--
+Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS
requires format array(classname, array(ctor_args)); the classname must be a string
specifying an existing class in %s on line %d
+
+done!
 --EXPECTF--
+Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS
requires format array(classname, array(ctor_args)); the classname must be a string
specifying an existing class in %s on line %d
+
+Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: 1051 Unknown table
'classtypes' in %s on line %d
 done!
\ No newline at end of file

Modified: trunk/tests/ext/pdo/pdo_get_available_drivers.phpt
===================================================================
--- trunk/tests/ext/pdo/pdo_get_available_drivers.phpt	2008-03-03 17:33:51 UTC (rev 1316)
+++ trunk/tests/ext/pdo/pdo_get_available_drivers.phpt	2008-03-04 14:02:09 UTC (rev 1317)
@@ -74,8 +74,6 @@
 
 print "done!";
 ?>
---BUGFREE_EXPECTF--
-done!
 --EXPECTF--
-[001] Typically functions that get invoked with invalid arguments return NULL or false,
this one returned array (array)
+Warning: Wrong parameter count for PDO::getAvailableDrivers() in %s on line %d
 done!

Thread
PHP mysqlnd svn commit: r1317 - trunk/tests/ext/pdouwendel4 Mar