Skip to content

Commit

Permalink
Fix ConfigTest for PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Horat1us committed Nov 29, 2023
1 parent 9a83119 commit b912044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function testExpireIntervalAsInvalidString(): void
$invalidString = 'P30M2';
$this->expectException(base\InvalidConfigException::class);
$this->expectExceptionCode(1);
$this->expectExceptionMessage(
"Invalid expireInterval format: Unknown or bad format (P30M2)"
$this->expectExceptionMessageMatches(
"/^Invalid expireInterval format\:.* Unknown or bad format \(P30M2\)$/"
);
new Authorization\Config([
'expireInterval' => $invalidString,
Expand Down

0 comments on commit b912044

Please sign in to comment.