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\ServiceNotCreatedException;
use PHPUnit\Framework\TestCase;
/**
* @author Alex Patterson <[email protected]>
* @package ArpTest\LaminasFactory\Exception
*/
final class ServiceNotCreatedExceptionTest extends TestCase
{
* Assert that the class implements \Exception.
*
* @covers \Arp\LaminasFactory\Exception\ServiceNotCreatedException
public function testImplementsException(): void
$exception = new ServiceNotCreatedException('Test exception message');
$this->assertInstanceOf(\Exception::class, $exception);
}
* Assert that the class implements the laminas ServiceNotCreatedException.
public function testImplementsLaminasServiceNotCreatedException(): void
$this->assertInstanceOf(\Laminas\ServiceManager\Exception\ServiceNotCreatedException::class, $exception);