We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059816c commit b66d0abCopy full SHA for b66d0ab
tests/NumberTest.php
@@ -53,17 +53,17 @@ public function provideFromString_success()
53
/**
54
* @dataProvider provideFromString_fail
55
*/
56
- public function testFromString_fail($number, $checkDigit, $expected)
+ public function testFromString_fail($number, $expected)
57
{
58
$this->expectException($expected);
59
- new Number($number, $checkDigit);
+ Number::fromString($number);
60
}
61
62
public function provideFromString_fail()
63
64
return [
65
- ['', 1, \InvalidArgumentException::class],
66
- ['xyz ', null, \InvalidArgumentException::class],
+ ['', \InvalidArgumentException::class],
+ ['xyz ', \InvalidArgumentException::class],
67
];
68
69
0 commit comments