Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function testEmptyResulSet() { |
||
33 | |||
34 | $searchMatches = array(); |
||
35 | $termMatches = array(); |
||
36 | |||
37 | $instance = new MappedSearchResultSet( $searchMatches, $termMatches, 42 ); |
||
38 | |||
39 | $this->assertEquals( |
||
40 | 0, |
||
41 | $instance->numRows() |
||
42 | ); |
||
43 | |||
44 | $this->assertFalse( |
||
45 | $instance->hasResults() |
||
46 | ); |
||
47 | |||
48 | $this->assertEquals( |
||
49 | 42, |
||
50 | $instance->getTotalHits() |
||
51 | ); |
||
52 | |||
53 | $this->assertEmpty( |
||
54 | $instance->termMatches() |
||
55 | ); |
||
56 | |||
57 | $this->assertFalse( |
||
58 | $instance->next() |
||
59 | ); |
||
60 | } |
||
61 | |||
93 |