Skip to content

Commit 3927482

Browse files
committed
DomPluginTest: Use DOMException
1 parent 2c7e947 commit 3927482

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build/kint.phar

-1 Bytes
Binary file not shown.

src/Parser/DomPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class DomPlugin extends AbstractPlugin implements PluginBeginInterface
102102
'previousElementSibling' => true,
103103
'nextElementSibling' => true,
104104
'innerHTML' => false,
105-
'outerHTML' => false,
105+
'outerHTML' => true,
106106
'substitutedNodeValue' => false,
107107
];
108108

tests/Parser/DomPluginTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
use Dom\XMLDocument;
3535
use DOMDocument;
3636
use DOMElement;
37+
use DOMException;
3738
use DOMNode;
3839
use DOMText;
3940
use Error;
@@ -265,7 +266,7 @@ public function testGetKnownProperties(?object $node)
265266

266267
try {
267268
$node->{$name} = 'test';
268-
} catch (Error $e) {
269+
} catch (Error|DOMException $e) {
269270
$error = true;
270271
}
271272

0 commit comments

Comments
 (0)