FilterManagerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 23
rs 10
c 2
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A testInstanceOfFilterFactoryInterface() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ArpTest\LaminasDoctrine\Query\Filter;
6
7
use Arp\DoctrineQueryFilter\Filter\FilterFactoryInterface;
8
use Arp\LaminasDoctrineQueryFilter\Filter\FilterManager;
9
use PHPUnit\Framework\MockObject\MockObject;
10
use PHPUnit\Framework\TestCase;
11
use Psr\Container\ContainerInterface;
12
13
/**
14
 * @covers  \Arp\LaminasDoctrineQueryFilter\Filter\FilterManager
15
 *
16
 * @author  Alex Patterson <[email protected]>
17
 * @package ArpTest\LaminasDoctrine\Query\Filter
18
 */
19
final class FilterManagerTest extends TestCase
20
{
21
    /**
22
     * @var ContainerInterface&MockObject
23
     */
24
    private $container;
25
26
    /**
27
     * Prepare the test case dependencies
28
     */
29
    public function setUp(): void
30
    {
31
        $this->container = $this->createMock(ContainerInterface::class);
32
    }
33
34
    /**
35
     * Assert that the FilterManager implements the FilterFactoryInterface
36
     */
37
    public function testInstanceOfFilterFactoryInterface(): void
38
    {
39
        $manager = new FilterManager($this->container);
40
41
        $this->assertInstanceOf(FilterFactoryInterface::class, $manager);
42
    }
43
}
44