function testOptionalParameters() { $this->router->map('/blog(/@year(/@month(/@day)))', function ($year, $month, $day) { echo "{$year},{$month},{$day}"; }); $this->request->url = '/blog/2000'; $this->check('2000,,'); }