Skip to content

Commit

Permalink
Replace expectError*() => expectException*() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
krmgns committed Jul 7, 2024
1 parent cf0229b commit c821a8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/UuidTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ function testModify() {
self::assertIsString($bins);
self::assertSame(16, strlen($bins));

self::expectError(UuidError::class);
self::expectErrorMessage('Modify for only 16-length bins');
self::expectException(UuidError::class);
self::expectExceptionMessage('Modify for only 16-length bins');

Uuid::modify('invalid');
}
Expand All @@ -118,8 +118,8 @@ function testFormat() {
self::assertIsString($hash);
self::assertSame(36, strlen($hash));

self::expectError(UuidError::class);
self::expectErrorMessage('Format for only 32-length hashes');
self::expectException(UuidError::class);
self::expectExceptionMessage('Format for only 32-length hashes');

Uuid::format('invalid');
}
Expand Down

0 comments on commit c821a8d

Please sign in to comment.