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