summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-10-10 12:50:09 +0000
committerAndrey Hristov <andrey@php.net>2011-10-10 12:50:09 +0000
commit236fb29289686bea69594b8e7c213c4dc306d6bc (patch)
tree765497b493df895c4783adc7e518ec621d95ac02
parent6c1fe05d61f3dca6cc6ecb4849ada2813bffe39b (diff)
downloadphp-git-236fb29289686bea69594b8e7c213c4dc306d6bc.tar.gz
fix test
-rw-r--r--ext/mysqli/tests/mysqli_class_mysqli_interface.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
index 9eff426911..d54d951c10 100644
--- a/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
+++ b/ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
@@ -151,6 +151,11 @@ require_once('skipifconnectfailure.inc');
$mysqli->sqlstate, gettype($mysqli->sqlstate),
mysqli_sqlstate($link), gettype(mysqli_sqlstate($link)));
+ assert(mysqli_stat($link) === $mysqli->stat);
+ printf("mysqli->stat = '%s'/%s ('%s'/%s)\n",
+ $mysqli->stat, gettype($mysqli->stat),
+ mysqli_stat($link), gettype(mysqli_stat($link)));
+
assert(mysqli_get_host_info($link) === $mysqli->host_info);
printf("mysqli->host_info = '%s'/%s ('%s'/%s)\n",
$mysqli->host_info, gettype($mysqli->host_info),
@@ -236,6 +241,7 @@ protocol_version
server_info
server_version
sqlstate
+stat
thread_id
warning_count
@@ -254,6 +260,7 @@ info
insert_id
server_info
server_version
+stat
sqlstate
protocol_version
thread_id
@@ -269,6 +276,7 @@ mysqli->error_list = 'Array'/array ('Array'/array)
mysqli->field_count = '0'/integer ('0'/integer)
mysqli->insert_id = '0'/integer ('0'/integer)
mysqli->sqlstate = '00000'/%unicode|string% ('00000'/%unicode|string%)
+mysqli->stat = 'Uptime: %d Threads: %d Questions: %d Slow queries: %d Opens: %d Flush tables: %d Open tables: %d Queries per second avg: %d.%d'/string ('Uptime: %d Threads: %d Questions: %d Slow queries: %d Opens: %d Flush tables: %d Open tables: %d Queries per second avg: %d.%d'/string)
mysqli->host_info = '%s'/%unicode|string% ('%s'/%unicode|string%)
mysqli->info = ''/NULL (''/%unicode|string%)
mysqli->thread_id = '%d'/integer ('%d'/integer)