add($m, $p, fn() => Response::json(['route' => $p])); $this->assertSame(200, $r->dispatch(new Request('GET', '/events/9', [], '', [], []))->status()); $this->assertSame(200, $r->dispatch(new Request('GET', '/snap/abc', [], '', [], []))->status()); $this->assertSame(404, $r->dispatch(new Request('DELETE', '/api/events', [], '', [], []))->status()); } }