1--TEST--
2Document::createAttribute()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7require __DIR__ . "/dump_attr.inc";
8
9echo "--- HTML document ---\n";
10
11$dom = Dom\HTMLDocument::createEmpty();
12$attr = $dom->createAttribute('foo');
13dumpAttr($attr);
14$attr = $dom->createAttribute('FoOo');
15dumpAttr($attr);
16
17echo "--- XML document ---\n";
18
19$dom = Dom\XMLDocument::createEmpty();
20$attr = $dom->createAttribute('foo');
21dumpAttr($attr);
22$attr = $dom->createAttribute('FoOo');
23dumpAttr($attr);
24?>
25--EXPECT--
26--- HTML document ---
27Attr: foo
28NULL
29string(3) "foo"
30NULL
31Attr: fooo
32NULL
33string(4) "fooo"
34NULL
35--- XML document ---
36Attr: foo
37NULL
38string(3) "foo"
39NULL
40Attr: FoOo
41NULL
42string(4) "FoOo"
43NULL
44