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);