| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | public function testNextReturnsValueFromOuterShifter() |
||
| 27 | { |
||
| 28 | $innerShifter = $this->mockShifter(); |
||
| 29 | |||
| 30 | $outerShifter = $this->mockShifter(); |
||
| 31 | $outerShifter->expects($this->once())->method('shift')->will($this->returnValue('2015-02-02')); |
||
| 32 | |||
| 33 | $iterator = new InnerChronoIterator($innerShifter, $outerShifter, '2011-11-11'); |
||
| 34 | $iterator->next(); |
||
| 35 | $this->assertEquals('2015-02-02', $iterator->current()); |
||
| 36 | } |
||
| 37 | |||
| 49 |