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