| 1 | <?php |
||
| 19 | class UserTest extends TestCaseAbstract |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * testGetPattern |
||
| 23 | * |
||
| 24 | * @since 4.3.0 |
||
| 25 | */ |
||
| 26 | |||
| 27 | public function testGetPattern() : void |
||
| 28 | { |
||
| 29 | /* setup */ |
||
| 30 | |||
| 31 | $validator = new Validator\User(); |
||
| 32 | |||
| 33 | /* actual */ |
||
| 34 | |||
| 35 | $actual = $validator->getPattern(); |
||
| 36 | |||
| 37 | /* compare */ |
||
| 38 | |||
| 39 | $this->assertIsString($actual); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * testValidate |
||
| 44 | * |
||
| 45 | * @since 4.3.0 |
||
| 46 | * |
||
| 47 | * @param string $user |
||
| 48 | * @param bool $expect |
||
| 49 | * |
||
| 50 | * @dataProvider providerAutoloader |
||
| 51 | */ |
||
| 52 | |||
| 53 | public function testValidate(string $user = null, bool $expect = null) : void |
||
| 67 | } |
||
| 68 |