Annotation of embedaddon/php/ext/simplexml/tests/032.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SimpleXML: comparing instances
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7: $xml =<<<EOF
! 8: <people>
! 9: <person name="Joe"/>
! 10: <person name="John">
! 11: <children>
! 12: <person name="Joe"/>
! 13: </children>
! 14: </person>
! 15: <person name="Jane"/>
! 16: </people>
! 17: EOF;
! 18:
! 19: $xml1 =<<<EOF
! 20: <people>
! 21: <person name="John">
! 22: <children>
! 23: <person name="Joe"/>
! 24: </children>
! 25: </person>
! 26: <person name="Jane"/>
! 27: </people>
! 28: EOF;
! 29:
! 30:
! 31: $people = simplexml_load_string($xml);
! 32: $people1 = simplexml_load_string($xml);
! 33: $people2 = simplexml_load_string($xml1);
! 34:
! 35: var_dump($people1 == $people);
! 36: var_dump($people2 == $people);
! 37: var_dump($people2 == $people1);
! 38:
! 39: ?>
! 40: ===DONE===
! 41: --EXPECTF--
! 42: bool(false)
! 43: bool(false)
! 44: bool(false)
! 45: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>