for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ArpTest\LaminasFactory\Exception;
use Arp\LaminasFactory\Exception\ServiceNotFoundException;
use PHPUnit\Framework\TestCase;
/**
* @author Alex Patterson <[email protected]>
* @package ArpTest\LaminasFactory\Exception
*/
final class ServiceNotFoundExceptionTest extends TestCase
{
* Assert that the class implements \Exception.
*
* @covers \Arp\LaminasFactory\Exception\ServiceNotFoundException
public function testImplementsException(): void
$exception = new ServiceNotFoundException('Test exception message');
$this->assertInstanceOf(\Exception::class, $exception);
}
* Assert that the class implements the laminas ServiceNotFoundException.
public function testImplementsLaminasServiceNotCreatedException(): void
$this->assertInstanceOf(\Laminas\ServiceManager\Exception\ServiceNotFoundException::class, $exception);