public function testUnexistingScopedRoute()
{
Router::scope('tests', function () {
Router::connect('/user/view/{:args}', array('User::view'));
});
Router::scope('tests');
$ex = "No parameter match found for URL `('controller' => 'User', ";
$ex .= "'action' => 'view', 'args' => 'bob')` in `app` scope.";
$this->assertException($ex, function () {
Router::match(array('User::view', 'args' => 'bob'), null, array('scope' => 'app'));
});
}