diff options
author | Marcus Boerger <helly@php.net> | 2003-08-28 23:30:16 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-08-28 23:30:16 +0000 |
commit | 257223bdcc3bca7c1178b9b3889dedee4b9f1625 (patch) | |
tree | 57673c8680a3062e196f1135684d70d9b86abd79 | |
parent | 90561350f92cce92bf2deec323ed3812d1086733 (diff) | |
download | php-git-257223bdcc3bca7c1178b9b3889dedee4b9f1625.tar.gz |
Match expected class and instantiated class
-rwxr-xr-x | ext/sqlite/tests/sqlite_024.phpt | 8 | ||||
-rwxr-xr-x | ext/sqlite/tests/sqlite_oo_024.phpt | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/sqlite/tests/sqlite_024.phpt b/ext/sqlite/tests/sqlite_024.phpt index 531b50fead..c9673b7ff6 100755 --- a/ext/sqlite/tests/sqlite_024.phpt +++ b/ext/sqlite/tests/sqlite_024.phpt @@ -27,13 +27,13 @@ foreach ($data as $str) { sqlite_query($db, "INSERT INTO strings VALUES('$str')"); } -echo "====stdclass====\n"; +echo "====class24====\n"; $res = sqlite_query($db, "SELECT a FROM strings", SQLITE_ASSOC); while (sqlite_has_more($res)) { var_dump(sqlite_fetch_object($res, 'class24')); } -echo "====class24!====\n"; +echo "====stdclass====\n"; $res = sqlite_query($db, "SELECT a FROM strings", SQLITE_ASSOC); while (sqlite_has_more($res)) { var_dump(sqlite_fetch_object($res)); @@ -42,7 +42,7 @@ while (sqlite_has_more($res)) { echo "====DONE!====\n"; ?> --EXPECTF-- -====stdclass==== +====class24==== class24::__construct object(class24)#%d (1) { ["a"]=> @@ -58,7 +58,7 @@ object(class24)#%d (1) { ["a"]=> string(5) "three" } -====class24!==== +====stdclass==== object(stdClass)#%d (1) { ["a"]=> string(3) "one" diff --git a/ext/sqlite/tests/sqlite_oo_024.phpt b/ext/sqlite/tests/sqlite_oo_024.phpt index 8234c2d49a..d6448c5bb8 100755 --- a/ext/sqlite/tests/sqlite_oo_024.phpt +++ b/ext/sqlite/tests/sqlite_oo_024.phpt @@ -27,13 +27,13 @@ foreach ($data as $str) { $db->query("INSERT INTO strings VALUES('$str')"); } -echo "====stdclass====\n"; +echo "====class24====\n"; $res = $db->query("SELECT a FROM strings", SQLITE_ASSOC); while ($res->has_more()) { var_dump($res->fetch_object('class24')); } -echo "====class24!====\n"; +echo "====stdclass====\n"; $res = $db->query("SELECT a FROM strings", SQLITE_ASSOC); while ($res->has_more()) { var_dump($res->fetch_object()); @@ -42,7 +42,7 @@ while ($res->has_more()) { echo "====DONE!====\n"; ?> --EXPECTF-- -====stdclass==== +====class24==== class24::__construct object(class24)#%d (1) { ["a"]=> @@ -58,7 +58,7 @@ object(class24)#%d (1) { ["a"]=> string(5) "three" } -====class24!==== +====stdclass==== object(stdClass)#%d (1) { ["a"]=> string(3) "one" |