function testRouteObjectPassing()
{
$this->router->map('/yes_route', function ($route) {
$this->assertTrue(is_object($route));
$this->assertTrue(is_array($route->methods));
$this->assertTrue(is_array($route->params));
$this->assertEquals(sizeof($route->params), 0);
$this->assertEquals($route->regex, null);
$this->assertEquals($route->splat, '');
$this->assertTrue($route->pass);
}, true);
$this->request->url = '/yes_route';
$this->check();
$this->router->map('/no_route', function ($route = null) {
$this->assertTrue(is_null($route));
}, false);
$this->request->url = '/no_route';
$this->check();
}