Author: uwendel
Date: 2007-06-27 15:23:14 +0200 (Wed, 27 Jun 2007)
New Revision: 523
Modified:
trunk/tests/ext/mysql/mysql_get_proto_info.phpt
Log:
Adding a few more test details using gcov/code coverage
Modified: trunk/tests/ext/mysql/mysql_get_proto_info.phpt
===================================================================
--- trunk/tests/ext/mysql/mysql_get_proto_info.phpt 2007-06-27 13:14:40 UTC (rev 522)
+++ trunk/tests/ext/mysql/mysql_get_proto_info.phpt 2007-06-27 13:23:14 UTC (rev 523)
@@ -11,7 +11,15 @@
require "table.inc";
if (!is_int($info = mysql_get_proto_info($link)) || (0 === $info))
- printf("[003] Expecting int/any_non_empty, got %s/%s\n", gettype($info), $info);
+ printf("[003] Expecting int/any_non_empty, got %s/%s\n", gettype($info), $info);
+
+ if (!is_int($info2 = mysql_get_proto_info()) || (0 === $info2))
+ printf("[004] Expecting int/any_non_empty, got %s/%s\n", gettype($info2),
$info2);
+
+ assert($info === $info2);
+
+ if (NULL !== ($tmp = @mysql_get_proto_info('too many', 'arguments')))
+ printf("[005] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
print "done!";
?>
| Thread |
|---|
| • PHP mysqlnd svn commit: r523 - trunk/tests/ext/mysql | uwendel | 27 Jun |