| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 63 | public function testGetSlice() |
||
| 64 | { |
||
| 65 | $offset = 14; |
||
| 66 | $length = 20; |
||
| 67 | $slice = new \ArrayObject(); |
||
| 68 | |||
| 69 | $this->query |
||
| 70 | ->expects($this->once()) |
||
| 71 | ->method('limit') |
||
| 72 | ->with($length); |
||
| 73 | $this->query |
||
| 74 | ->expects($this->once()) |
||
| 75 | ->method('offset') |
||
| 76 | ->with($offset); |
||
| 77 | $this->query |
||
| 78 | ->expects($this->once()) |
||
| 79 | ->method('find') |
||
| 80 | ->will($this->returnValue($slice)); |
||
| 81 | |||
| 82 | $this->assertSame($slice, $this->adapter->getSlice($offset, $length)); |
||
| 83 | } |
||
| 84 | } |
||
| 85 |