for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ArpTest\Container\Exception;
use Arp\Container\Exception\NotFoundException;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
/**
* @author Alex Patterson <[email protected]>
* @package ArpTest\Container\Exception
*/
final class NotFoundExceptionTest extends TestCase
{
* Ensure that the exception is an instance of the default PHP exception instance.
*
* @covers \Arp\Container\Exception\NotFoundException
public function testIsInstanceOfException(): void
$exception = new NotFoundException();
$this->assertInstanceOf(\Exception::class, $exception);
}
* Ensure that the exception implements ContainerExceptionInterface.
public function testImplementsContainerExceptionInterface(): void
$this->assertInstanceOf(ContainerExceptionInterface::class, $exception);
* Ensure that the exception implements NotFoundExceptionInterface.
public function testImplementsNotFoundExceptionInterface(): void
$this->assertInstanceOf(NotFoundExceptionInterface::class, $exception);