Skip to content

Commit b66d0ab

Browse files
committed
Bugfix in Number::fromString() test
1 parent 059816c commit b66d0ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/NumberTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@ public function provideFromString_success()
5353
/**
5454
* @dataProvider provideFromString_fail
5555
*/
56-
public function testFromString_fail($number, $checkDigit, $expected)
56+
public function testFromString_fail($number, $expected)
5757
{
5858
$this->expectException($expected);
59-
new Number($number, $checkDigit);
59+
Number::fromString($number);
6060
}
6161

6262
public function provideFromString_fail()
6363
{
6464
return [
65-
['', 1, \InvalidArgumentException::class],
66-
['xyz ', null, \InvalidArgumentException::class],
65+
['', \InvalidArgumentException::class],
66+
['xyz ', \InvalidArgumentException::class],
6767
];
6868
}
6969

0 commit comments

Comments
 (0)