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\ContainerException;
use PHPUnit\Framework\TestCase;
use Psr\Container\ContainerExceptionInterface;
/**
* @author Alex Patterson <[email protected]>
* @package ArpTest\Container\Exception
*/
final class ContainerExceptionTest extends TestCase
{
* Ensure that the exception is an instance of the default PHP exception instance.
*
* @covers \Arp\Container\Exception\ContainerException
public function testIsInstanceOfException(): void
$exception = new ContainerException();
$this->assertInstanceOf(\Exception::class, $exception);
}
* Ensure that the exception implements ContainerExceptionInterface.
public function testImplementsContainerExceptionInterface(): void
$this->assertInstanceOf(ContainerExceptionInterface::class, $exception);