|
@@ 25-33 (lines=9) @@
|
| 22 |
|
$this->assertInstanceOf('\Iterator', $iterator); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function testShifterBeginsFromFirstMatch() |
| 26 |
|
{ |
| 27 |
|
$shifter = $this->createIsoChronicIncrement(); |
| 28 |
|
|
| 29 |
|
$iterator = new ChronoIterator($shifter, '2015-01-03'); |
| 30 |
|
$result = $iterator->current(); |
| 31 |
|
|
| 32 |
|
$this->assertEquals('2015-01-15', $result); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public function testShifterIncrementsWithShifter() |
| 36 |
|
{ |
|
@@ 35-44 (lines=10) @@
|
| 32 |
|
$this->assertEquals('2015-01-15', $result); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public function testShifterIncrementsWithShifter() |
| 36 |
|
{ |
| 37 |
|
$shifter = $this->createIsoChronicIncrement(); |
| 38 |
|
|
| 39 |
|
$iterator = new ChronoIterator($shifter, '2015-01-03'); |
| 40 |
|
$iterator->next(); |
| 41 |
|
$result = $iterator->current(); |
| 42 |
|
|
| 43 |
|
$this->assertEquals('2015-01-29', $result); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public function testShifterKeyIsTimestamp() |
| 47 |
|
{ |