Esempio n. 1
0
 public function testParsesAllFoundStatements()
 {
     $statements = $this->engine->parse();
     $this->assertEquals(1, count($statements));
     $first = $statements[0];
     $this->assertEquals('22-07-2010', $first->getStartTimestamp('d-m-Y'));
     $this->assertEquals('23-07-2010', $first->getEndTimestamp('d-m-Y'));
     $this->assertEquals(-3.47, $first->getDeltaPrice());
 }
Esempio n. 2
0
 protected function setUp()
 {
     $this->engine = new Ing();
     $this->engine->loadString(file_get_contents(__DIR__ . '/sample'));
 }