Skip to content

Commit

Permalink
test invalid secret key message
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Oct 16, 2024
1 parent e52a057 commit 6987b26
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Exception/InvalidSecretKeyTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace SnapAuth\Exception;

use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;

#[CoversClass(InvalidSecretKey::class)]
#[Small]
class InvalidSecretKeyTest extends TestCase
{
public function testConstruct(): void
{
$e = new InvalidSecretKey();
self::assertStringContainsString('Invalid secret key', $e->getMessage());
}
}

0 comments on commit 6987b26

Please sign in to comment.