Skip to content

Commit 53f8ea4

Browse files
committed
Update testcases for Name
1 parent 0966abd commit 53f8ea4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tests/Rules/NameTest.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public function providerWithoutAllowNumber()
2828
return array_merge($this->shared(), [
2929
[false, '1234 abc DEF'],
3030
[false, '1234abcDEF'],
31-
[false, '消极的123'],
31+
[false, '123'],
32+
[false, '李小龍123'],
3233
]);
3334
}
3435

@@ -37,19 +38,21 @@ public function providerWithAllowNumber()
3738
return array_merge($this->shared(), [
3839
[true, '1234 abc DEF'],
3940
[true, '1234abcDEF'],
40-
[true, '消极的123'],
41+
[true, '123'],
42+
[true, '李小龍123'],
4143
]);
4244
}
4345

4446
private function shared()
4547
{
4648
return [
47-
[true, 'foobar'],
48-
[true, 'foobar'],
49-
[true, 'a'],
50-
[true, '消极的'],
51-
[true, '###'],
52-
[true, '**'],
49+
[true, 'John Doe'],
50+
[true, 'john doe'],
51+
[true, 'j'],
52+
[true, 'john'],
53+
[true, 'Md. Ariful Alam'],
54+
[true, 'Martin Luther King, Jr.'],
55+
[true, '李小龍'],
5356
[false, '😀'],
5457
[false, 'john 😀'],
5558
[false, ''],

0 commit comments

Comments
 (0)