for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ArpTest\DateTime\Factory;
use Arp\DateTime\DateTimeFactory;
use Arp\DateTime\Factory\DateTimeFactoryFactory;
use Arp\Factory\FactoryInterface;
use PHPUnit\Framework\TestCase;
/**
* @covers \Arp\DateTime\Factory\DateTimeFactoryFactory
*
* @author Alex Patterson <[email protected]>
* @package ArpTest\DateTime\Factory
*/
final class DateTimeFactoryFactoryTest extends TestCase
{
* Assert that the factory implements FactoryInterface.
public function testImplementsFactoryInterface(): void
$factory = new DateTimeFactoryFactory();
$this->assertInstanceOf(FactoryInterface::class, $factory);
}
* Assert that the factory will return a DateTimeFactory instance when calling create().
public function testCreateWillReturnADateTimeFactory(): void
$this->assertInstanceOf(DateTimeFactory::class, $factory->create());