-
Notifications
You must be signed in to change notification settings - Fork 0
CIPHPUnitTestRequest
Mathieu Nayrolles edited this page Jan 20, 2016
·
1 revision
Part of CI PHPUnit Test
- Class name: CIPHPUnitTestRequest
- Namespace:
protected callable $callable
- Visibility: protected
protected callable $callablePreConstructor
- Visibility: protected
protected mixed $enableHooks = false
- Visibility: protected
protected mixed $CI
- Visibility: protected
protected boolean $bc_mode_throw_PHPUnit_Framework_Exception = false
- Visibility: protected
mixed CIPHPUnitTestRequest::setCallable(callable $callable)
Set callable
- Visibility: public
- $callable callable - <p>function to run after controller instantiation</p>
mixed CIPHPUnitTestRequest::setCallablePreConstructor(callable $callable)
Set callable pre constructor
- Visibility: public
- $callable callable - <p>function to run before controller instantiation</p>
mixed CIPHPUnitTestRequest::enableHooks()
Enable Hooks for Controllres This enables only pre_controller, post_controller_constructor, post_controller
- Visibility: public
mixed CIPHPUnitTestRequest::request(string $http_method, array|string $argv, array $params, callable $callable)
Request to Controller
- Visibility: public
- $http_method string - <p>HTTP method</p>
- $argv array|string - <p>array of controller,method,arg|uri</p>
- $params array - <p>POST parameters/Query string</p>
- $callable callable - <p>[deprecated] function to run after controller instantiation. Use setCallable() method instead</p>
mixed CIPHPUnitTestRequest::callControllerMethod(string $http_method, array $argv, array $request_params, callable $callable)
Call Controller Method
- Visibility: protected
- $http_method string - <p>HTTP method</p>
- $argv array - <p>controller, method [, arg1, ...]</p>
- $request_params array - <p>POST parameters/Query string</p>
- $callable callable - <p>[deprecated] function to run after controller instantiation. Use setCallable() method instead</p>
mixed CIPHPUnitTestRequest::requestUri(string $http_method, string $uri, array $request_params, callable $callable)
Request to URI
- Visibility: protected
- $http_method string - <p>HTTP method</p>
- $uri string - <p>URI string</p>
- $request_params array - <p>POST parameters/Query string</p>
- $callable callable - <p>[deprecated] function to run after controller instantiation. Use setCallable() method instead</p>
mixed CIPHPUnitTestRequest::createAndCallController($class, $method, $params)
- Visibility: protected
- $class mixed
- $method mixed
- $params mixed
array CIPHPUnitTestRequest::getRoute(\CI_Route $RTR, \CI_URI $URI)
Get Route including 404 check
- Visibility: protected
- $RTR CI_Route - <p>Router object</p>
- $URI CI_URI - <p>URI object</p>
array CIPHPUnitTestRequest::getStatus()
Get HTTP Status Code Info
- Visibility: public