From afcb9658aa940c53953ef391a692b593bd3d2c9c Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sat, 31 Aug 2024 18:39:07 +0200 Subject: [PATCH] Fix exception --- tests/InterOperability/DefinitionsTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/InterOperability/DefinitionsTest.php b/tests/InterOperability/DefinitionsTest.php index a7a511fb..d8fddd2f 100644 --- a/tests/InterOperability/DefinitionsTest.php +++ b/tests/InterOperability/DefinitionsTest.php @@ -5,9 +5,9 @@ namespace SimpleSAML\Test\WSSecurity; use DOMElement; +use Exception; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; -use SimpleSAML\Assert\AssertionFailedException; use SimpleSAML\WSSecurity\XML\wsdl\Definitions; use SimpleSAML\XML\DOMDocumentFactory; @@ -28,7 +28,7 @@ public function testUnmarshalling(bool $shouldPass, DOMElement $mex): void try { Definitions::fromXML($mex); $this->assertTrue($shouldPass); - } catch (AssertionFailedException $e) { + } catch (Exception $e) { fwrite(STDERR, $e->getFile() . '(' . strval($e->getLine()) . '):' . $e->getMessage()); fwrite(STDERR, $e->getTraceAsString()); $this->assertFalse($shouldPass);