1 | <?php |
||
17 | class TestAuthor extends TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @param $uuid |
||
21 | * @param $name |
||
22 | * @param $email |
||
23 | * @param $bio |
||
24 | * @param $birthdate |
||
25 | * @param $expected |
||
26 | * @param $message |
||
27 | * @dataProvider authorConstructorProvider |
||
28 | */ |
||
29 | public function testConstructor($uuid, $name, $email, $bio, $birthdate, $expected, $message) |
||
35 | |||
36 | /** |
||
37 | * @param $uuid |
||
38 | * @param $name |
||
39 | * @param $email |
||
40 | * @param $bio |
||
41 | * @param $birthdate |
||
42 | * @dataProvider constructorException |
||
43 | */ |
||
44 | public function testInvalidId($uuid, $name, $email, $bio, $birthdate) |
||
49 | |||
50 | /** |
||
51 | * @param Author $author |
||
52 | * @param $newEmailAddress |
||
53 | * @param $expected |
||
54 | * @param $message |
||
55 | * @dataProvider emailProvider |
||
56 | */ |
||
57 | public function testEmailShouldBeValid(Author $author, $newEmailAddress, $expected, $message) |
||
63 | |||
64 | public function authorConstructorProvider() |
||
80 | |||
81 | public function constructorException() |
||
90 | |||
91 | public function emailProvider() |
||
101 | } |
||
102 |