diff --git a/Tests/v11/Tests/v11Test.php b/Tests/v11/Tests/v11Test.php index d32ff83..3f1b113 100644 --- a/Tests/v11/Tests/v11Test.php +++ b/Tests/v11/Tests/v11Test.php @@ -9,7 +9,7 @@ class v11Test extends \PHPUnit_Framework_TestCase public function testValidate() { $v11 = new v11(array( - "002012000002123456000000001291146290519 7500000000000014102414102414102400000000000000000000000", + "002012000002123456000000001291146290519 7500ZY0000000014102414102414102400000000000000000000000", "012012000002123456000000001290507716881 50000008 000014102314102414102400552073900000000000120", "002012000002123456000000001288602003992 2550000000000014102414102414102400000000000000000000000", "002012000002123456000000001290068583973 50000008 000014102314102414102400489435900000000000000", @@ -128,12 +128,12 @@ public function testValidateTransactionLineInvalidContents() $v11 = new v11(array( "002012000002123456000000001291146290519 7500000000000014102414102414102400000000000000000000000", "012012000002123456000000001290507716881 50000008 000014102314102414102400552073900000000000120", - "002012000002123456000000001288602003992 255000000A000014102414102414102400000000000000000000000", + "002012000002123456000000001288602003992 255000000.000014102414102414102400000000000000000000000", "002012000002123456000000001290068583973 50000008 000014102314102414102400489435900000000000000", "999012000002999999999999999999999999999000000020050000000000004141027000000120000000004 ", )); $this->assertFalse($v11->validate()); - $this->assertSame('Line number 3 contains invalid characters. It may only contain digits and spaces', $v11->getError()); + $this->assertSame('Line number 3 contains invalid characters. It may only contain digits, letters and spaces', $v11->getError()); } public function testValidateNotMatchingNumberOfTransactions()