Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class EmailTest extends TestCase |
||
11 | { |
||
12 | /** |
||
13 | * @test |
||
14 | * @covers ::filter |
||
15 | */ |
||
16 | public function filter() |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @test |
||
24 | * @expectedException \TraderInteractive\Exceptions\FilterException |
||
25 | * @expectedExceptionMessage Value '111222333444' is not a string |
||
26 | * @covers ::filter |
||
27 | */ |
||
28 | public function filterNotString() |
||
29 | { |
||
30 | Email::filter(111222333444); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @test |
||
35 | * @expectedException \TraderInteractive\Exceptions\FilterException |
||
36 | * @expectedExceptionMessage Value '@email.com' is not a valid email |
||
37 | * @covers ::filter |
||
38 | */ |
||
39 | public function filterNotValid() |
||
42 | } |
||
43 | } |
||
44 |