Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
40 | public function testMatch() |
||
41 | { |
||
42 | $testedInstance = new RegistryEntry( |
||
43 | $this->getMock(DataProviderInterface::class), |
||
44 | 'my_index', |
||
45 | 'my_type' |
||
46 | ); |
||
47 | |||
48 | $this->assertTrue( |
||
49 | $testedInstance->match('my_index', 'my_type') |
||
50 | ); |
||
51 | |||
52 | $this->assertFalse( |
||
53 | $testedInstance->match('my_index', 'my_type_2') |
||
54 | ); |
||
55 | |||
56 | $this->assertTrue( |
||
57 | $testedInstance->match('my_index', null) |
||
58 | ); |
||
59 | |||
60 | $this->assertFalse( |
||
61 | $testedInstance->match('my_index_2', 'my_type') |
||
62 | ); |
||
63 | |||
64 | $this->assertTrue( |
||
65 | $testedInstance->match(null, null) |
||
66 | ); |
||
67 | } |
||
68 | } |
||
69 |