From 3927482a628680dda5afdb8e88bc842f326b24bf Mon Sep 17 00:00:00 2001 From: Jonathan Vollebregt Date: Sun, 5 Jan 2025 12:20:46 +0100 Subject: [PATCH] DomPluginTest: Use DOMException --- build/kint.phar | Bin 575452 -> 575451 bytes src/Parser/DomPlugin.php | 2 +- tests/Parser/DomPluginTest.php | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/kint.phar b/build/kint.phar index 6d54c1f66592ca05cc160cb826867bb0adbebfda..c71c814f670b26a87c32a56f34ac033b77e164f9 100644 GIT binary patch delta 143 zcmcc9uY9{-d4nLgzz$aihK7AQG9Y?_imp+!B6qtYH{*6iZluw~q2s5sd9GO}PtQ|?Tr2vcqr1_lOqCtoK3Ny|SJ delta 143 zcmccJuY9Lpd4nLgz)n{NhK7AQG9X%9Z^gT2MecS*ZpQ73+)QOprdPga5@=uco(YJV zftUq|S%H{s`?B}!Z?Ah?s*`N`n|($_K$^K~R_o+=g*&&m-Sqvo)x-Zmyl_&rx&D`L qB`hC`XUZ38hB*XfEtUMbd+Ktgl!BU0;fw&8y`3x!3=Hm0zD@uJ$vnjX diff --git a/src/Parser/DomPlugin.php b/src/Parser/DomPlugin.php index 358c0b91..4669eecf 100644 --- a/src/Parser/DomPlugin.php +++ b/src/Parser/DomPlugin.php @@ -102,7 +102,7 @@ class DomPlugin extends AbstractPlugin implements PluginBeginInterface 'previousElementSibling' => true, 'nextElementSibling' => true, 'innerHTML' => false, - 'outerHTML' => false, + 'outerHTML' => true, 'substitutedNodeValue' => false, ]; diff --git a/tests/Parser/DomPluginTest.php b/tests/Parser/DomPluginTest.php index 272a2692..72b705a7 100644 --- a/tests/Parser/DomPluginTest.php +++ b/tests/Parser/DomPluginTest.php @@ -34,6 +34,7 @@ use Dom\XMLDocument; use DOMDocument; use DOMElement; +use DOMException; use DOMNode; use DOMText; use Error; @@ -265,7 +266,7 @@ public function testGetKnownProperties(?object $node) try { $node->{$name} = 'test'; - } catch (Error $e) { + } catch (Error|DOMException $e) { $error = true; }