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

DateIntervalFactoryFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testImplementsFactoryInterface() 0 5 1
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