1 | <?php |
||
20 | class AliasTest extends TestCaseAbstract |
||
21 | { |
||
22 | /** |
||
23 | * testGetPattern |
||
24 | * |
||
25 | * @since 4.3.0 |
||
26 | */ |
||
27 | |||
28 | public function testGetPattern() : void |
||
29 | { |
||
30 | /* setup */ |
||
31 | |||
32 | $validator = new Validator\Alias(); |
||
33 | |||
34 | /* actual */ |
||
35 | |||
36 | $actual = $validator->getPattern(); |
||
37 | |||
38 | /* compare */ |
||
39 | |||
40 | $this->assertIsString($actual); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * testValidate |
||
45 | * |
||
46 | * @since 4.3.0 |
||
47 | * |
||
48 | * @param string $alias |
||
49 | * @param bool $expect |
||
50 | * |
||
51 | * @dataProvider providerAutoloader |
||
52 | */ |
||
53 | |||
54 | public function testValidate(string $alias = null, bool $expect = null) : void |
||
68 | |||
69 | /** |
||
70 | * testMatchSystem |
||
71 | * |
||
72 | * @since 4.3.0 |
||
73 | * |
||
74 | * @param string $alias |
||
75 | * @param bool $expect |
||
76 | * |
||
77 | * @dataProvider providerAutoloader |
||
78 | */ |
||
79 | |||
80 | public function testMatchSystem(string $alias = null, bool $expect = null) : void |
||
94 | } |
||
95 |