Skip to content

Commit

Permalink
Fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 31, 2024
1 parent 56541e5 commit afcb965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/InterOperability/DefinitionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);
Expand Down

0 comments on commit afcb965

Please sign in to comment.