Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
59 | public function testMatchCollectionReturnsWhenFound() |
||
60 | { |
||
61 | $returnBlog = $this->matcher->matchCollection('/blog'); |
||
62 | $returnSlug = $this->matcher->matchCollection('/blog/this-is-a-post'); |
||
63 | |||
64 | $this->assertEquals( |
||
65 | [ |
||
66 | 'controller' => 'Blog', |
||
67 | 'action' => 'index', |
||
68 | 'params' => [] |
||
69 | ], |
||
70 | $returnBlog |
||
71 | ); |
||
72 | $this->assertEquals( |
||
73 | [ |
||
74 | 'controller' => 'Blog', |
||
75 | 'action' => 'getPost', |
||
76 | 'params' => [ |
||
77 | 'slug' => 'this-is-a-post' |
||
78 | ] |
||
79 | ], |
||
80 | $returnSlug |
||
81 | ); |
||
91 |