PHP 클래스 Phalcon\Test\FunctionalTestCase

상속: extends ModelTestCase
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$application

공개 메소드들

메소드 설명
assertAction ( string $expected ) Assert that the last dispatched action matches the given action name
assertController ( string $expected ) Assert that the last dispatched controller matches the given controller class name
assertDispatchIsForwarded ( ) Asserts that the dispatch is forwarded
assertHeader ( array $expected ) Assert that the response headers contains the given array $expected = ['Content-Type' => 'application/json']
assertRedirectTo ( string $location ) Assert location redirect
assertResponseCode ( string $expected ) Asserts that the response code matches the given one
assertResponseContentContains ( string $string ) Assert response content contains string
getContent ( ) : string Convenience method to retrieve response content

보호된 메소드들

메소드 설명
dispatch ( string $url ) : void Dispatches a given url and sets the response object accordingly
setUp ( ) This method is called before a test is executed.
tearDown ( ) : void Ensures that each test has it's own DI and all globals are purged

메소드 상세

assertAction() 공개 메소드

Assert that the last dispatched action matches the given action name
public assertAction ( string $expected )
$expected string The expected action name

assertController() 공개 메소드

Assert that the last dispatched controller matches the given controller class name
public assertController ( string $expected )
$expected string The expected controller name

assertDispatchIsForwarded() 공개 메소드

Asserts that the dispatch is forwarded

assertHeader() 공개 메소드

Assert that the response headers contains the given array $expected = ['Content-Type' => 'application/json']
public assertHeader ( array $expected )
$expected array The expected headers

assertRedirectTo() 공개 메소드

Assert location redirect
public assertRedirectTo ( string $location )
$location string

assertResponseCode() 공개 메소드

Asserts that the response code matches the given one
public assertResponseCode ( string $expected )
$expected string the expected response code

assertResponseContentContains() 공개 메소드

Assert response content contains string
public assertResponseContentContains ( string $string )
$string string

dispatch() 보호된 메소드

Dispatches a given url and sets the response object accordingly
protected dispatch ( string $url ) : void
$url string The request url
리턴 void

getContent() 공개 메소드

Convenience method to retrieve response content
public getContent ( ) : string
리턴 string

setUp() 보호된 메소드

This method is called before a test is executed.
protected setUp ( )

tearDown() 보호된 메소드

Ensures that each test has it's own DI and all globals are purged
protected tearDown ( ) : void
리턴 void

프로퍼티 상세

$application 보호되어 있는 프로퍼티

protected $application