Skip to content

Commit 6d22243

Browse files
committed
add forgotten test
1 parent 4e6e9cf commit 6d22243

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Attribute named node map cache
3+
--EXTENSIONS--
4+
dom
5+
--FILE--
6+
<?php
7+
8+
$dom = Dom\XMLDocument::createFromString('<root a="1" b="2" c="3"/>');
9+
$attrs = $dom->documentElement->attributes;
10+
var_dump($attrs[1]->nodeName);
11+
$dom->documentElement->removeAttribute('b');
12+
var_dump($attrs[1]->nodeName);
13+
14+
?>
15+
--EXPECT--
16+
string(1) "b"
17+
string(1) "c"

0 commit comments

Comments
 (0)