1 | <?php |
||
16 | class TestAuthor extends PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | /** |
||
19 | * @param $uuid |
||
20 | * @param $name |
||
21 | * @param $email |
||
22 | * @param $bio |
||
23 | * @param $birthdate |
||
24 | * @param $expected |
||
25 | * @param $message |
||
26 | * @dataProvider authorConstructorProvider |
||
27 | */ |
||
28 | public function testConstructor($uuid, $name, $email, $bio, $birthdate, $expected, $message) |
||
33 | |||
34 | /** |
||
35 | * @param Author $author |
||
36 | * @param $newEmailAddress |
||
37 | * @param $expected |
||
38 | * @param $message |
||
39 | * @dataProvider emailProvider |
||
40 | */ |
||
41 | public function testEmailShouldBeValid(Author $author, $newEmailAddress, $expected, $message) |
||
47 | |||
48 | public function authorConstructorProvider() |
||
54 | |||
55 | public function emailProvider() |
||
64 | } |
||
65 |