-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for Container's
CookieNotFoundException
.
- Loading branch information
1 parent
ed04c7a
commit 152f041
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
tests/Unit/Container/Exception/CookieNotFoundExceptionCest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Tests\Unit\Container\Exception; | ||
|
||
use Centum\Container\Exception\CookieNotFoundException; | ||
use Tests\Support\UnitTester; | ||
|
||
/** | ||
* @covers \Centum\Container\Exception\CookieNotFoundException | ||
*/ | ||
class CookieNotFoundExceptionCest | ||
{ | ||
public function test(UnitTester $I): void | ||
{ | ||
$name = "username"; | ||
|
||
$exception = new CookieNotFoundException($name); | ||
|
||
$I->assertEquals( | ||
$name, | ||
$exception->getName() | ||
); | ||
} | ||
} |