diff options
author | Ulf Wendel <uw@php.net> | 2011-01-17 13:06:44 +0000 |
---|---|---|
committer | Ulf Wendel <uw@php.net> | 2011-01-17 13:06:44 +0000 |
commit | a55e03aaffd8601f3b66c0f16451404b61a2f18b (patch) | |
tree | 94c2f0a843947eaa39cc441088402b0e7673b9c7 /ext/mysqli/tests/mysqli_fetch_field.phpt | |
parent | 5ba90aefb086c0d93626607998b6a7b39a8d055f (diff) | |
download | php-git-a55e03aaffd8601f3b66c0f16451404b61a2f18b.tar.gz |
Fix tests: don't expect people to use a certain db/schema for testing
Diffstat (limited to 'ext/mysqli/tests/mysqli_fetch_field.phpt')
-rw-r--r-- | ext/mysqli/tests/mysqli_fetch_field.phpt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/ext/mysqli/tests/mysqli_fetch_field.phpt b/ext/mysqli/tests/mysqli_fetch_field.phpt index 92c1e648aa..d1d358b342 100644 --- a/ext/mysqli/tests/mysqli_fetch_field.phpt +++ b/ext/mysqli/tests/mysqli_fetch_field.phpt @@ -44,6 +44,10 @@ require_once('skipifconnectfailure.inc'); $charsets['results']['maxlen'], $tmp->max_length); } + if ($tmp->db != $db) { + printf("011] Expecting database '%s' got '%s'\n", + $db, $tmp->db); + } var_dump(mysqli_fetch_field($res)); @@ -87,13 +91,13 @@ object(stdClass)#%d (13) { [%u|b%"table"]=> %unicode|string%(4) "TEST" [%u|b%"orgtable"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"def"]=> %unicode|string%(0) "" [%u|b%"db"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"catalog"]=> - %unicode|string%(3) "def" + %unicode|string%(%d) "%s" [%u|b%"max_length"]=> int(1) [%u|b%"length"]=> @@ -115,13 +119,13 @@ object(stdClass)#%d (13) { [%u|b%"table"]=> %unicode|string%(4) "TEST" [%u|b%"orgtable"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"def"]=> %unicode|string%(0) "" [%u|b%"db"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"catalog"]=> - %unicode|string%(3) "def" + %unicode|string%(%d) "%s" [%u|b%"max_length"]=> int(%d) [%u|b%"length"]=> @@ -148,15 +152,15 @@ object(stdClass)#%d (13) { [%u|b%"orgname"]=> %unicode|string%(2) "id" [%u|b%"table"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"orgtable"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"def"]=> %unicode|string%(0) "" [%u|b%"db"]=> - %unicode|string%(4) "test" + %unicode|string%(%d) "%s" [%u|b%"catalog"]=> - %unicode|string%(3) "def" + %unicode|string%(%d) "%s" [%u|b%"max_length"]=> int(1) [%u|b%"length"]=> |