Skip to content

Commit

Permalink
Test secret key missing message
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Oct 16, 2024
1 parent 3bd1c6b commit e52a057
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Exception/MissingSecretKeyTest.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(MissingSecretKey::class)]
#[Small]
class MissingSecretKeyTest extends TestCase
{
public function testConstruct(): void
{
$e = new MissingSecretKey();
self::assertStringContainsString('SNAPAUTH_SECRET_KEY', $e->getMessage());
}
}

0 comments on commit e52a057

Please sign in to comment.