From 206008bf773ee3da4d5981477376f63438f1d0d5 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 6 Oct 2005 18:37:19 +0000 Subject: [PATCH] - Fix test --- tests/classes/tostring_001.phpt | 103 +++++++++++++------------------- 1 file changed, 41 insertions(+), 62 deletions(-) diff --git a/tests/classes/tostring_001.phpt b/tests/classes/tostring_001.phpt index 24c3a9e190..ecc64b0860 100755 --- a/tests/classes/tostring_001.phpt +++ b/tests/classes/tostring_001.phpt @@ -5,16 +5,33 @@ ZE2 __toString() --FILE-- -====DONE!==== +====DONE==== --EXPECTF-- ====test1==== test1 Object ( ) -string(12) "Object id #%d" +string(54) "Object of class test1 could not be converted to string" +string(0) "" object(test1)#%d (0) { } ====test2==== @@ -67,7 +91,7 @@ test2 Object ) test2::__toString() Converted -object(test2)#%d (%d) { +object(test2)#%d (0) { } ====test3==== test2::__toString() @@ -78,8 +102,8 @@ string:Converted ====test5==== test2::__toString() 1Converted -test2::__toString() -1Converted +1test2::__toString() +Converted ====test6==== test2::__toString() test2::__toString() @@ -91,8 +115,7 @@ test2::__toString() Converted ====test7==== test2::__toString() - -Warning: Illegal offset type in %stostring_001.php on line %d +string(19) "Illegal offset type" ====test8==== test2::__toString() string(9) "Converted" @@ -101,53 +124,9 @@ string(9) "Converted" ====test9==== test2::__toString() Converted -====DONE!==== ---UEXPECTF-- -====test1==== -test1 Object -( -) -string(12) "Object id #%d" -object(test1)#%d (0) { -} -====test2==== -test2 Object -( -) -test2::__toString() -Converted -object(test2)#%d (%d) { +====test10==== +object(test3)#%d (0) { } -====test3==== -test2::__toString() -Converted -====test4==== -test2::__toString() -string:Converted -====test5==== -test2::__toString() -1Converted -test2::__toString() -1Converted -====test6==== -test2::__toString() -test2::__toString() -Converted -Converted -test2::__toString() -Converted -test2::__toString() -Converted -====test7==== -test2::__toString() - -Warning: Illegal offset type in %stostring_001.php on line %d -====test8==== -test2::__toString() -unicode(9) "Converted" -test2::__toString() -unicode(9) "Converted" -====test9==== -test2::__toString() -Converted -====DONE!==== +test3::__toString() +string(53) "Method test3::__toString() must return a string value" +====DONE==== -- 2.40.0