| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function testMatch(): void |
||
| 20 | { |
||
| 21 | $routeCollector = new RouteCollector(); |
||
| 22 | $routeCollector->addGroup(Group::create()->routes(Route::get('/'))); |
||
| 23 | $matcher = new UrlMatcher(new RouteCollection($routeCollector)); |
||
| 24 | $collector = $this->createMock(RouterCollector::class); |
||
| 25 | $time = microtime(true); |
||
| 26 | |||
| 27 | $proxy = new UrlMatcherInterfaceProxy($matcher, $collector); |
||
| 28 | $collector->expects($this->once())->method('collect')->with($this->equalToWithDelta(microtime(true) - $time, 0.1)); |
||
| 29 | |||
| 30 | $proxy->match(new ServerRequest('GET', '/')); |
||
| 31 | } |
||
| 33 |