Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | public function testParsesAllFoundStatements() |
||
34 | { |
||
35 | $statements = $this->engine->parse(); |
||
36 | |||
37 | $this->assertEquals(4, count($statements)); |
||
38 | $first = $statements[0]; |
||
39 | $last = end($statements); |
||
40 | |||
41 | $this->assertEquals('23-06-2009', $first->getStartTimestamp('d-m-Y')); |
||
42 | $this->assertEquals('24-06-2009', $first->getEndTimestamp('d-m-Y')); |
||
43 | $this->assertEquals(210.5, $first->getDeltaPrice()); |
||
44 | |||
45 | $this->assertEquals('23-06-2009', $last->getStartTimestamp('d-m-Y')); |
||
46 | $this->assertEquals('24-06-2009', $last->getEndTimestamp('d-m-Y')); |
||
47 | } |
||
48 | } |
||
49 |