php-src/ext/dom/tests/DOM4_DOMNode_ElementSiblings.phpt
Max Semenik bd9f4fa676 Migrate skip checks to --EXTENSIONS--, p2
For rationale, see https://github.com/php/php-src/pull/6787

Make extension checks lowercase, add a special case for opcache
that has internal name not matching .so filename.

Extensions migrated in part 2:
* dom
* exif
* fileinfo
* ffi
2021-04-01 12:08:24 +01:00

25 lines
523 B
PHP

--TEST--
DOMNode: Element Siblings
--EXTENSIONS--
dom
--FILE--
<?php
require_once("dom_test.inc");
$dom = new DOMDocument;
$dom->loadXML('<test>foo<bar>FirstElement</bar><bar>LastElement</bar>bar</test>');
$element = $dom->documentElement;
print_node($element->firstElementChild->nextElementSibling);
print_node($element->lastElementChild->previousElementSibling);
?>
--EXPECT--
Node Name: bar
Node Type: 1
Num Children: 1
Node Content: LastElement
Node Name: bar
Node Type: 1
Num Children: 1
Node Content: FirstElement