1 | <?php |
||
18 | class TestPost extends PHPUnit_Framework_TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @Post $post |
||
22 | */ |
||
23 | private $post; |
||
24 | |||
25 | public function setUp() |
||
29 | |||
30 | /** |
||
31 | * @param $uuid |
||
32 | * @param $title |
||
33 | * @param $body |
||
34 | * @param $author |
||
35 | * @param $tags |
||
36 | * @param $publishDate |
||
37 | * @param $expected |
||
38 | * @param $message |
||
39 | * @dataProvider postConstructor |
||
40 | */ |
||
41 | public function testConstructor($uuid, $title, $body, $author, $tags, $publishDate, $expected, $message) |
||
46 | |||
47 | /** |
||
48 | * @param $date |
||
49 | * @param $expected |
||
50 | * @param $message |
||
51 | * @dataProvider publishDateProvider |
||
52 | */ |
||
53 | public function testPublishDates($date, $expected, $message) |
||
58 | |||
59 | /** |
||
60 | * @param $tag |
||
61 | * @param $expected |
||
62 | * @param $message |
||
63 | * @dataProvider addTagProvider |
||
64 | */ |
||
65 | public function testAddTag($tag, $expected, $message) |
||
70 | |||
71 | /** |
||
72 | * @param $tags |
||
73 | * @param $tag |
||
74 | * @param $expected |
||
75 | * @param $message |
||
76 | * @dataProvider removeTagProvider |
||
77 | */ |
||
78 | public function testRemoveTag($tags, $tag, $expected, $message) |
||
84 | |||
85 | public function postConstructor() |
||
94 | |||
95 | public function publishDateProvider() |
||
104 | |||
105 | public function addTagProvider() |
||
111 | |||
112 | public function removeTagProvider() |
||
118 | } |
||
119 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.