Passed
Pull Request — master (#7)
by Alex
01:51
created

testImplementsFactoryInterface()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\DateTime\Factory;
6
7
use Arp\DateTime\Factory\DateIntervalFactoryFactory;
8
use Arp\Factory\FactoryInterface;
9
use PHPUnit\Framework\TestCase;
10
11
/**
12
 * @covers \Arp\DateTime\Factory\DateIntervalFactoryFactory
13
 *
14
 * @author  Alex Patterson <[email protected]>
15
 * @package ArpTest\DateTime\Factory
16
 */
17
final class DateIntervalFactoryFactoryTest extends TestCase
18
{
19
    /**
20
     * Assert that the factory implements FactoryInterface
21
     */
22
    public function testImplementsFactoryInterface(): void
23
    {
24
        $factory = new DateIntervalFactoryFactory();
25
26
        $this->assertInstanceOf(FactoryInterface::class, $factory);
27
    }
28
}
29