Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class FactoryTest extends CommonTestClass |
||
13 | { |
||
14 | public function testNoInternalLib(): void |
||
15 | { |
||
16 | $lib = new XFFactory(); |
||
17 | $this->assertInstanceOf(Check\CustomList::class, $lib->getLibrary('anything')); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param mixed $params |
||
22 | * @param string $class |
||
23 | * @dataProvider fullProvider |
||
24 | */ |
||
25 | public function testFull($params, string $class): void |
||
26 | { |
||
27 | $lib = new Check\Factory(); |
||
28 | $this->assertInstanceOf($class, $lib->getLibrary($params)); |
||
29 | } |
||
30 | |||
31 | public function fullProvider(): array |
||
40 | ]; |
||
41 | } |
||
42 | } |
||
43 |