Passed
Pull Request — master (#2)
by Alex
02:49
created

ConfigurationFactoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\LaminasDoctrine\Service\Configuration;
6
7
use Arp\LaminasDoctrine\Service\Configuration\ConfigurationFactory;
8
use Arp\LaminasDoctrine\Service\Configuration\ConfigurationFactoryInterface;
9
use Laminas\ServiceManager\ServiceManager;
10
use PHPUnit\Framework\MockObject\MockObject;
11
use PHPUnit\Framework\TestCase;
12
13
/**
14
 * @covers  \Arp\LaminasDoctrine\Service\Configuration\ConfigurationFactory
15
 *
16
 * @author  Alex Patterson <[email protected]>
17
 * @package ArpTest\LaminasDoctrine\Service\Configuration
18
 */
19
final class ConfigurationFactoryTest extends TestCase
20
{
21
    /**
22
     * @var ServiceManager|MockObject
23
     */
24
    private $serviceManager;
25
26
    /**
27
     * Prepare the test case dependencies
28
     */
29
    public function setUp(): void
30
    {
31
        $this->serviceManager = $this->createMock(ServiceManager::class);
32
    }
33
34
    /**
35
     * Assert that the ConfigurationFactory implement ConfigurationFactoryInterface
36
     */
37
    public function testImplementsConfigurationInterface(): void
38
    {
39
        $factory = new ConfigurationFactory($this->serviceManager);
40
41
        $this->assertInstanceOf(ConfigurationFactoryInterface::class, $factory);
42
    }
43
}
44