Skip to content

Commit

Permalink
updated statement test
Browse files Browse the repository at this point in the history
now it also checks the soon to be deprecated dates
  • Loading branch information
fruitl00p committed Sep 16, 2015
1 parent ec5c4fe commit 2393866
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public function testParseStatementBank()
$this->assertEquals('Rabo', $method->invoke($this->engine));
}

public function testParsesAllFoundStatements() {
$statements = $this->engine->parse();
$this->assertEquals(39, count($statements));
$this->assertEquals('06-01-2003', reset($statements)->getTimestamp('d-m-Y'));
$this->assertEquals('08-01-2003', end($statements)->getTimestamp('d-m-Y'));
}

public function testInitialNegativeStatementBalance() {
$this->engine->loadString(file_get_contents(__DIR__ . '/sample2'));
$statements = $this->engine->parse();
Expand Down

0 comments on commit 2393866

Please sign in to comment.