public function testAlias() { Router::alias('/', 'home.html'); $result = Router::match('/'); $this->assertTrue($result instanceof Route); $this->assertEquals('home.html', $result->url); $this->assertEquals([], $result->parameters); $this->assertTrue(is_callable($result->callback)); $result = ($result->callback)(new Request()); $this->assertTrue($result instanceof Page); }