source: src/router/php7/ext/dom/tests/bug61858.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 399 bytes
Line 
1--TEST--
2Bug #61858 DOMAttr debug info generates E_WARNING
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9$doc = new DOMDocument();
10$doc->loadXML('<example a="b">Test</example>');
11
12$example = $doc->getElementsByTagName('example')->item(0);
13$attr    = $example->getAttributeNode('a');
14
15var_dump($attr);
16print_r($attr);
17--EXPECTF--
18object(DOMAttr)#%d (%d) {
19%A
20}
21DOMAttr Object
22(
23%A
24)
Note: See TracBrowser for help on using the repository browser.