Completed
Push — master ( 119967...dfb500 )
by Alex
16s queued 12s
created

AbstractFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testImplementsFactoryInterface() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\LaminasFactory;
6
7
use Arp\LaminasFactory\AbstractFactory;
8
use Laminas\ServiceManager\Factory\FactoryInterface;
9
use PHPUnit\Framework\MockObject\MockObject;
10
use PHPUnit\Framework\TestCase;
11
12
/**
13
 * @author  Alex Patterson <[email protected]>
14
 * @package ArpTest\LaminasFactory
15
 */
16
final class AbstractFactoryTest extends TestCase
17
{
18
    /**
19
     * Assert that the AbstractFactory implements the FactoryInterface.
20
     *
21
     * @covers \Arp\LaminasFactory\AbstractFactory
22
     */
23
    public function testImplementsFactoryInterface(): void
24
    {
25
        /** @var AbstractFactory|MockObject $factory */
26
        $factory = $this->getMockForAbstractClass(AbstractFactory::class);
27
28
        $this->assertInstanceOf(FactoryInterface::class, $factory);
29
    }
30
}
31