1 | <?php |
||
18 | class TestTrail extends TestCase |
||
19 | { |
||
20 | /** |
||
21 | * @var Trail $trail |
||
22 | */ |
||
23 | private $trail; |
||
24 | |||
25 | /** |
||
26 | * @var Post $post1 |
||
27 | */ |
||
28 | private $post1; |
||
29 | |||
30 | /** |
||
31 | * @var Post $post2 |
||
32 | */ |
||
33 | private $post2; |
||
34 | |||
35 | public function setUp() |
||
53 | |||
54 | /** |
||
55 | * @param string|null $uuid |
||
56 | * @param string $name |
||
57 | * @param string $description |
||
58 | * @param Post[] $posts |
||
59 | * @param string $expected |
||
60 | * @param string $message |
||
61 | * @dataProvider trailConstructor |
||
62 | */ |
||
63 | public function testConstructor($uuid, $name, $description, $posts, $expected, $message) |
||
68 | |||
69 | /** |
||
70 | * @param Post[] $posts |
||
71 | * @param Post $post |
||
72 | * @param string $expected |
||
73 | * @param string $message |
||
74 | * @dataProvider addPostProvider |
||
75 | */ |
||
76 | public function testAddPost($posts, $post, $expected, $message) |
||
82 | |||
83 | /** |
||
84 | * @param Post[] $posts |
||
85 | * @param Post $post |
||
86 | * @param string $expected |
||
87 | * @param string $message |
||
88 | * @dataProvider removePostProvider |
||
89 | */ |
||
90 | public function testRemovePost($posts, $post, $expected, $message) |
||
96 | |||
97 | public function trailConstructor() |
||
114 | |||
115 | public function addPostProvider() |
||
135 | |||
136 | public function removePostProvider() |
||
146 | } |
||
147 |