Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: simplesamlphp/xml-security
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: df921e0b09bcdfe6fc80169f5566250d7a54d64d
Choose a base ref
..
head repository: simplesamlphp/xml-security
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ad234b03f34ed3379c1bb5c1804e0202c472fd7d
Choose a head ref
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/Assert/HMACOutputLengthTest.php
4 changes: 2 additions & 2 deletions tests/Assert/HMACOutputLengthTest.php
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

use PHPUnit\Framework\Attributes\{CoversClass, DataProvider};
use PHPUnit\Framework\TestCase;
use SimpleSAML\Assert\AssertionFailedException;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XMLSecurity\Assert\Assert;
use SimpleSAML\XMLSecurity\Exception\ProtocolViolationException;

@@ -28,7 +28,7 @@ public function testValidHMACOutputLength(bool $shouldPass, string $HMACOutputLe
try {
Assert::validHMACOutputLength($HMACOutputLength);
$this->assertTrue($shouldPass);
} catch (AssertionFailedException | ProtocolViolationException $e) {
} catch (SchemaViolationException | ProtocolViolationException $e) {
$this->assertFalse($shouldPass);
}
}