From: Dmitry Stogov Date: Mon, 27 Mar 2006 13:53:19 +0000 (+0000) Subject: Fixed test X-Git-Tag: RELEASE_1_3~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daca456e1a076bad91b04e8ed75a83b345618b65;p=php Fixed test --- diff --git a/ext/simplexml/tests/033.phpt b/ext/simplexml/tests/033.phpt index ba01b21555..b0ee633881 100755 --- a/ext/simplexml/tests/033.phpt +++ b/ext/simplexml/tests/033.phpt @@ -135,3 +135,102 @@ object(SimpleXMLElement)#%d (1) { } } ===DONE=== +--UEXPECTF-- +bool(false) +bool(true) +int(0) +int(0) +float(0) +float(0) +unicode(0) "" +unicode(15) " +test + + + +" +array(0) { +} +array(1) { + [u"person"]=> + array(3) { + [0]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(3) "Joe" + } + } + [1]=> + object(SimpleXMLElement)#%d (2) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(4) "John" + } + [u"children"]=> + object(SimpleXMLElement)#%d (1) { + [u"person"]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(3) "Joe" + } + } + } + } + [2]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(4) "Jane" + } + } + } +} +object(SimpleXMLElement)#%d (0) { +} +object(SimpleXMLElement)#%d (1) { + [u"person"]=> + array(3) { + [0]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(3) "Joe" + } + } + [1]=> + object(SimpleXMLElement)#%d (2) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(4) "John" + } + [u"children"]=> + object(SimpleXMLElement)#%d (1) { + [u"person"]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(3) "Joe" + } + } + } + } + [2]=> + object(SimpleXMLElement)#%d (1) { + [u"@attributes"]=> + array(1) { + [u"name"]=> + unicode(4) "Jane" + } + } + } +} +===DONE=== diff --git a/ext/spl/tests/spl_autoload_008.phpt b/ext/spl/tests/spl_autoload_008.phpt index bafd26d877..95ab6bd599 100755 --- a/ext/spl/tests/spl_autoload_008.phpt +++ b/ext/spl/tests/spl_autoload_008.phpt @@ -129,3 +129,65 @@ MyAutoLoader::dynaLoad(NoExistingTestClass) Exception: Bla int(0) ===DONE=== +--UEXPECTF-- +====0==== +unicode(10) "MyAutoLoad" +registered +MyAutoLoad(NoExistingTestClass) +Exception: Bla +int(0) +====1==== +unicode(22) "MyAutoLoader::autoLoad" +registered +MyAutoLoader::autoLoad(NoExistingTestClass) +Exception: Bla +int(0) +====2==== +unicode(22) "MyAutoLoader::dynaLoad" +LogicException: Function 'MyAutoLoader::dynaLoad' not callable +int(0) +====3==== +array(2) { + [0]=> + unicode(12) "MyAutoLoader" + [1]=> + unicode(8) "autoLoad" +} +registered +MyAutoLoader::autoLoad(NoExistingTestClass) +Exception: Bla +int(0) +====4==== +array(2) { + [0]=> + unicode(12) "MyAutoLoader" + [1]=> + unicode(8) "dynaLoad" +} +LogicException: Passed array specifies a non static method but no object +int(0) +====5==== +array(2) { + [0]=> + object(MyAutoLoader)#%d (0) { + } + [1]=> + unicode(8) "autoLoad" +} +registered +MyAutoLoader::autoLoad(NoExistingTestClass) +Exception: Bla +int(0) +====6==== +array(2) { + [0]=> + object(MyAutoLoader)#%d (0) { + } + [1]=> + unicode(8) "dynaLoad" +} +registered +MyAutoLoader::dynaLoad(NoExistingTestClass) +Exception: Bla +int(0) +===DONE===