Skip to content

Commit 0b2052d

Browse files
committed
Fix build
1 parent 0d12417 commit 0b2052d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/XMLSchema/Type/Helper/XPathValueTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace SimpleSAML\Test\XMLSchema\Type\Builtin;
66

7+
use DOMException;
78
use PHPUnit\Framework\Attributes\CoversClass;
89
use PHPUnit\Framework\Attributes\DataProvider;
910
use PHPUnit\Framework\TestCase;
@@ -28,7 +29,7 @@ public function testString(bool $shouldPass, string $xpath): void
2829
try {
2930
$value = XPathValue::fromString($xpath);
3031
$this->assertTrue($shouldPass);
31-
} catch (AssertionFailedException $e) {
32+
} catch (DOMException | AssertionFailedException $e) {
3233
$this->assertFalse($shouldPass);
3334
}
3435
}

0 commit comments

Comments
 (0)