Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class GeneralTest extends AbstractTest |
||
13 | { |
||
14 | /** |
||
15 | * @dataProvider data_valid_email |
||
16 | * |
||
17 | * @param string $email |
||
18 | * @param bool $valid |
||
19 | */ |
||
20 | public function testValidEmail($email, $valid) |
||
21 | { |
||
22 | static::assertSame(valid_email($email), $valid); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return array[] |
||
27 | */ |
||
28 | public function data_valid_email() |
||
34 | ]; |
||
35 | } |
||
37 |