프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$callablePreConstructors | callable called pre controller constructor | ||
$callables | callable called post controller constructor | ||
$enableHooks | |||
$hooks | CI_Hooks | ||
$router | CIPHPUnitTestRouter | ||
$superGlobal | CIPHPUnitTestSuperGlobal | ||
$testCase |
메소드 | 설명 | |
---|---|---|
__construct ( PHPUnit_Framework_TestCase $testCase ) | ||
addCallable ( callable $callable ) | Add callable | |
addCallablePreConstructor ( callable $callable ) | Add callable pre constructor | |
enableHooks ( ) | Enable Hooks for Controllres This enables only pre_controller, post_controller_constructor, post_controller | |
getStatus ( ) : array | Get HTTP Status Code Info | |
request ( string $http_method, array | string $argv, array | string $params = [] ) | Request to Controller | |
setCallable ( callable $callable ) | Set (and Reset) callable | |
setCallablePreConstructor ( callable $callable ) | Set (and Reset) callable pre constructor | |
setHeader ( string $name, string $value ) | Set HTTP request header |
메소드 | 설명 | |
---|---|---|
callControllerMethod ( string $http_method, array $argv, array | string $request_params ) | Call Controller Method | |
callHook ( $hook ) | ||
createAndCallController ( $class, $method, $params, $call_display = true ) | ||
processError ( Exception $e ) | ||
requestUri ( string $http_method, string $uri, array | string $request_params ) | Request to URI | |
setRawInputStream ( $string ) |
public __construct ( PHPUnit_Framework_TestCase $testCase ) | ||
$testCase | PHPUnit_Framework_TestCase |
public addCallable ( callable $callable ) | ||
$callable | callable | function to run after controller instantiation |
public addCallablePreConstructor ( callable $callable ) | ||
$callable | callable | function to run before controller instantiation |
protected createAndCallController ( $class, $method, $params, $call_display = true ) |
public enableHooks ( ) |
public setCallable ( callable $callable ) | ||
$callable | callable | function to run after controller instantiation |
public setCallablePreConstructor ( callable $callable ) | ||
$callable | callable | function to run before controller instantiation |
protected $callablePreConstructors |
protected CIPHPUnitTestSuperGlobal $superGlobal | ||
리턴 | CIPHPUnitTestSuperGlobal |