From 23938664bfec51e48e60ab6f712c699a6cd75477 Mon Sep 17 00:00:00 2001 From: Robin Speekenbrink Date: Wed, 16 Sep 2015 20:32:42 +0200 Subject: [PATCH] updated statement test now it also checks the soon to be deprecated dates --- test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php b/test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php index b362828..c955bd5 100644 --- a/test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php +++ b/test/Parser/Banking/Mt940/Engine/Rabo/ParseTest.php @@ -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();