helly Sun Mar 28 09:09:51 2004 EDT
Modified files:
/php-src/tests/classes tostring.phpt
Log:
Adapt ecpectations to 5.0 reality
http://cvs.php.net/diff.php/php-src/tests/classes/tostring.phpt?r1=1.4&r2=1.5&ty=u
Index: php-src/tests/classes/tostring.phpt
diff -u php-src/tests/classes/tostring.phpt:1.4 php-src/tests/classes/tostring.phpt:1.5
--- php-src/tests/classes/tostring.phpt:1.4 Tue Mar 16 13:09:52 2004
+++ php-src/tests/classes/tostring.phpt Sun Mar 28 09:09:47 2004
@@ -56,10 +56,8 @@
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::__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 @@
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!====
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php