Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testConstructedWithMethodAndPatternAndHandler(): void |
||
13 | { |
||
14 | $route = new Route( |
||
15 | $method = 'GET', |
||
16 | $pattern = '/', |
||
17 | $handler = $this->mockHandler() |
||
18 | ); |
||
19 | |||
20 | $this->assertEquals($method, $route->method()); |
||
21 | $this->assertEquals($pattern, $route->pattern()); |
||
22 | $this->assertEquals($handler, $route->handler()); |
||
23 | } |
||
25 |