function reset_request() { t::options('exit_after_callback', false); t::unexit(); }
echo 'no rules picked up'; }); }); expect($gather)->to_be('alpha'); reset_request(); mimick_request('/user/user123', 'GET'); $gather = gather_info(function () { t::get('/user/:userid', function () { echo 'alpha'; }); t::not_found(function () { echo 'no rules picked up'; }); }); expect($gather)->to_be('no rules picked up'); t::options(':userid', ''); reset_request(); mimick_request('/user/user123', 'GET'); $gather = gather_info(function () { t::get('/user/:userid', function () { echo 'catch all'; }); t::not_found(function () { echo 'no rules picked up'; }); }); expect($gather)->to_be('catch all'); }); it("allow arguments to be passed in any order", function () { mimick_request('/user/123', 'GET'); $gather = gather_info(function () {