Skip to content

Commit 401bca1

Browse files
committed
Test allowEmptyBic option for checkBic().
Just the tests. The function works as expected.
1 parent 8ea287b commit 401bca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/SepaUtilitiesTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public function testCheckBIC()
117117
static::assertSame('ASDFGHJ0ABC', SepaUtilities::checkBIC('ASDFGHJ0ABC', ['forceLongBic' => true]));
118118
static::assertSame('ASDFGHJ0ABC', SepaUtilities::checkBIC('ASDFGHJ0', ['forceLongBic' => true, 'forceLongBicStr' => 'ABC']));
119119
static::assertSame('ASDFGHJ0XXX', SepaUtilities::checkBIC('ASDFGHJ0XXX', ['forceLongBic' => true, 'forceLongBicStr' => 'ABC']));
120+
static::assertSame('', SepaUtilities::checkBIC('', ['allowEmptyBic' => true]));
121+
static::assertFalse(SepaUtilities::checkBIC('', ['allowEmptyBic' => false]));
120122
}
121123

122124
public function testFormatDate()

0 commit comments

Comments
 (0)