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 shouldConstructAuthor($uuid, $name, $email, $bio, $birthdate, $expected, $message) |
||
29 | { |
||
30 | $author = new Author($uuid, $name, $email, $bio, $birthdate); |
||
31 | $this->assertInstanceOf($expected, $author, $message); |
||
32 | } |
||
33 | |||
34 | public function authorConstructorProvider() |
||
40 | } |
||
41 |