Test Failed
Pull Request — master (#2)
by Alex
04:49 queued 01:37
created

EntityManagerContainerTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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