PHP 클래스 Bluz\Tests\TestCase

저자: Anton Shevchuk
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: bluzphp/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Application\Tests\BootstrapTest Application entity

보호된 메소드들

메소드 설명
assertArrayHasKeyAndSize ( array | ArrayObject $array, string $key, integer $size, string $message = null ) Assert Array Key has Size
assertArrayHasSize ( array | ArrayObject $array, integer $size, string $message = null ) Assert Array Size
assertEqualsArray ( array $expected, array $actual, string $message = null ) Assert one-level Arrays is Equals
getApp ( ) : BootstrapTest Get Application instance
prepareRequest ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | ServerRequest Set new Request instance
resetApp ( ) Reset layout and Request
resetGlobals ( ) Reset super-globals variables
setRequestParams ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | ServerRequest Set new Request instance
setUp ( ) Setup TestCase
tearDown ( ) Tear Down

메소드 상세

assertArrayHasKeyAndSize() 보호된 메소드

Assert Array Key has Size
protected assertArrayHasKeyAndSize ( array | ArrayObject $array, string $key, integer $size, string $message = null )
$array array | ArrayObject
$key string
$size integer
$message string

assertArrayHasSize() 보호된 메소드

Assert Array Size
protected assertArrayHasSize ( array | ArrayObject $array, integer $size, string $message = null )
$array array | ArrayObject
$size integer
$message string

assertEqualsArray() 보호된 메소드

Assert one-level Arrays is Equals
protected assertEqualsArray ( array $expected, array $actual, string $message = null )
$expected array
$actual array
$message string

getApp() 보호된 정적인 메소드

Get Application instance
protected static getApp ( ) : BootstrapTest
리턴 BootstrapTest

prepareRequest() 보호된 메소드

Set new Request instance
protected prepareRequest ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | ServerRequest
$path string Path part of URI http://host/module/controller/path
$query array $_GET params
$params array $_POST params
$method string HTTP method
$headers array HTTP headers
리턴 Psr\Http\Message\ServerRequestInterface | Zend\Diactoros\ServerRequest

resetApp() 보호된 정적인 메소드

Reset layout and Request
protected static resetApp ( )

resetGlobals() 보호된 정적인 메소드

Reset super-globals variables
protected static resetGlobals ( )

setRequestParams() 보호된 메소드

Set new Request instance
protected setRequestParams ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | ServerRequest
$path string Path part of URI http://host/module/controller/path
$query array $_GET params
$params array $_POST params
$method string HTTP method
$headers array HTTP headers
리턴 Psr\Http\Message\ServerRequestInterface | Zend\Diactoros\ServerRequest

setUp() 보호된 메소드

Setup TestCase
protected setUp ( )

tearDown() 보호된 메소드

Tear Down
protected tearDown ( )

프로퍼티 상세

$app 보호되어 있는 정적으로 프로퍼티

Application entity
protected static BootstrapTest,Application\Tests $app
리턴 Application\Tests\BootstrapTest