Further slow progress.

This commit is contained in:
2024-01-12 14:54:04 +00:00
parent e49f01cd68
commit 61e7b8dd49
8 changed files with 345 additions and 308 deletions

27
tests/GuardTest.php Normal file
View File

@ -0,0 +1,27 @@
<?php
namespace DNW\Skills\Tests;
use DNW\Skills\Guard;
use Exception;
class GuardTest extends TestCase
{
public function testArgumentNotNull(): void
{
$this->expectException(Exception::class);
Guard::argumentNotNull(null, "dummy");
}
public function testargumentIsValidIndex(): void
{
$this->expectException(Exception::class);
Guard::argumentIsValidIndex(25, 10, "dummy");
}
public function testargumentInRangeInclusive(): void
{
$this->expectException(Exception::class);
Guard::argumentInRangeInclusive(101, 0, 100, "dummy");
}
}