Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
30 | public function testGetReturnMatchingEntries() |
||
31 | { |
||
32 | $entry1 = $this->newRegistryMatching(true); |
||
33 | $entry2 = $this->newRegistryMatching(false); |
||
34 | $entry3 = $this->newRegistryMatching(true); |
||
35 | |||
36 | $this->testedInstance |
||
37 | ->add($entry1) |
||
38 | ->add($entry2) |
||
39 | ->add($entry3) |
||
40 | ; |
||
41 | |||
42 | $entries = $this->testedInstance->get(); |
||
43 | |||
44 | $this->assertCount(2, $entries); |
||
45 | |||
46 | $this->assertContains($entry1, $entries); |
||
47 | $this->assertNotContains($entry2, $entries); |
||
48 | $this->assertContains($entry3, $entries); |
||
49 | } |
||
50 | |||
67 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.