Annotation of embedaddon/php/ext/dom/tests/DOMNode_getLineNo_basic.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: DOMNode::getLineNo()
! 3: --SKIPIF--
! 4: <?php
! 5: include('skipif.inc');
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: $file = dirname(__FILE__).'/book.xml';
! 10: $doc = new DOMDocument();
! 11: $doc->load($file);
! 12: $nodes = $doc->getElementsByTagName('title');
! 13: foreach($nodes as $node) {
! 14: var_dump($node->getLineNo());
! 15: }
! 16: ?>
! 17: --EXPECTF--
! 18: int(4)
! 19: int(8)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>