Exemple #1
0
 public function testParsesAllFoundStatements()
 {
     $statements = $this->engine->parse();
     $first = $statements[0];
     $last = end($statements);
     $this->assertEquals('17-02-2010', $first->getStartTimestamp('d-m-Y'));
     $this->assertEquals('17-02-2010', $first->getEndTimestamp('d-m-Y'));
     $this->assertEquals('18-02-2010', $last->getStartTimestamp('d-m-Y'));
     $this->assertEquals('18-02-2010', $last->getEndTimestamp('d-m-Y'));
 }
Exemple #2
0
 /**
  *
  */
 public function testHasTheRightAmountOfTransactions()
 {
     $statements = $this->engine->parse();
     $this->assertSame(4, count($statements));
     $tranactions = [];
     foreach ($statements as $statement) {
         $tranactions = array_merge($tranactions, $statement->getTransactions());
     }
     $this->assertSame(10, count($tranactions));
 }