summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-03-28 14:09:47 +0000
committerMarcus Boerger <helly@php.net>2004-03-28 14:09:47 +0000
commita7b9cb454e10d4e1114aca048c9359afb341192b (patch)
tree7eff1978b760267053f4eb0bd3d8698a6363ba9f /tests
parent83675b66223ba98987f3067052be6d06fffdea14 (diff)
downloadphp-git-a7b9cb454e10d4e1114aca048c9359afb341192b.tar.gz
Adapt ecpectations to 5.0 reality
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/tostring.phpt29
1 files changed, 8 insertions, 21 deletions
diff --git a/tests/classes/tostring.phpt b/tests/classes/tostring.phpt
index 971e707aa4..7253cd4c7b 100644
--- a/tests/classes/tostring.phpt
+++ b/tests/classes/tostring.phpt
@@ -56,10 +56,8 @@ echo sprintf("%s", $o);
test1 Object
(
)
-
-Notice: Object of class test1 could not be converted to string in %stostring.php on line %d
-string(12) "Object id #%d"
-object(test1)#%d (0) {
+string(1%d) "Object id #%d"
+object(test1)#%d (%d) {
}
====test2====
test2 Object
@@ -67,23 +65,15 @@ test2 Object
)
test2::__toString()
Converted
-object(test2)#%d (0) {
+object(test2)#%d (%d) {
}
====test3====
test2::__toString()
Converted
====test4====
-test2::__toString()
-string:Converted
-====test5====
-test2::__toString()
-1Converted
-====test6====
-test2::__toString()
-test2::__toString()
-Converted
-Converted
-====test7====
+string:Object id #%d====test5====
+1Object id #%d====test6====
+Object id #%dObject id #2====test7====
test2::__toString()
Warning: Illegal offset type in %stostring.php on line %d
@@ -91,9 +81,6 @@ Warning: Illegal offset type in %stostring.php on line %d
Notice: Object of class test2 to string conversion in %stostring.php on line %d
string(6) "Object"
-test2::__toString()
-string(9) "Converted"
+string(1%d) "Object id #%d"
====test9====
-test2::__toString()
-Converted
-====DONE!====
+Object id #%d====DONE!====