summaryrefslogtreecommitdiff
path: root/ext/mysql/tests
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2007-07-11 15:49:32 +0000
committerUlf Wendel <uw@php.net>2007-07-11 15:49:32 +0000
commitcf0231da960b0c36093ab8c42d10eebd7c712be0 (patch)
tree082e4a79c503ba382370e0524367c9940ffc8aed /ext/mysql/tests
parentc1ab1512fdd0f4711e88bd979117e1292de64a4d (diff)
downloadphp-git-cf0231da960b0c36093ab8c42d10eebd7c712be0.tar.gz
Whitespace/Coding Standards and check added for default connection.
Diffstat (limited to 'ext/mysql/tests')
-rw-r--r--ext/mysql/tests/mysql_list_processes.phpt68
1 files changed, 41 insertions, 27 deletions
diff --git a/ext/mysql/tests/mysql_list_processes.phpt b/ext/mysql/tests/mysql_list_processes.phpt
index 11e1d4ccda..9f3dd62a85 100644
--- a/ext/mysql/tests/mysql_list_processes.phpt
+++ b/ext/mysql/tests/mysql_list_processes.phpt
@@ -4,32 +4,46 @@ mysql_list_processes()
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
- include "connect.inc";
-
- $tmp = NULL;
- $link = NULL;
-
- if (NULL !== ($tmp = @mysql_list_processes($link, $link)))
- printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-
- require('table.inc');
-
- if (!$res = mysql_list_processes($link))
- printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
-
- if (!$num = mysql_num_rows($res))
- printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link));
-
- $row = mysql_fetch_array($res, MYSQL_NUM);
- if (ini_get('unicode.semantics') && !is_unicode($row[0])) {
- printf("[004] Check for unicode support\n");
- var_inspect($row);
- }
-
- mysql_free_result($res);
- mysql_close($link);
-
- print "done!\n";
+include "connect.inc";
+
+$tmp = NULL;
+$link = NULL;
+
+if (NULL !== ($tmp = @mysql_list_processes($link, $link)))
+ printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
+
+require('table.inc');
+
+if (!$res = mysql_list_processes($link))
+ printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
+
+if (!$num = mysql_num_rows($res))
+ printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link));
+
+$row = mysql_fetch_array($res, MYSQL_NUM);
+if (ini_get('unicode.semantics') && !is_unicode($row[0])) {
+ printf("[004] Check for unicode support\n");
+ var_inspect($row);
+}
+
+mysql_free_result($res);
+
+if (!$res = mysql_list_processes())
+ printf("[005] [%d] %s\n", mysql_errno(), mysql_error());
+
+if (!$num = mysql_num_rows($res))
+ printf("[006] Empty process list? [%d] %s\n", mysql_errno(), mysql_error());
+
+$row = mysql_fetch_array($res, MYSQL_NUM);
+if (ini_get('unicode.semantics') && !is_unicode($row[0])) {
+ printf("[007] Check for unicode support\n");
+ var_inspect($row);
+}
+
+mysql_free_result($res);
+mysql_close($link);
+
+print "done!\n";
?>
--EXPECTF--
-done!
+done! \ No newline at end of file