PHP 클래스 Autarky\Testing\TestCase

상속: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: autarky/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Autarky\Application The application instance.

공개 메소드들

메소드 설명
setUp ( )
tearDown ( )

보호된 메소드들

메소드 설명
createApplication ( ) : Application Create and return the application instance.
enableExceptionHandling ( ) : void Enable exception handling in the application being tested.

메소드 상세

createApplication() 추상적인 보호된 메소드

Usually this will simply be a require of your app/start.php file. Make sure that this file does return $app; at the end.
abstract protected createApplication ( ) : Application
리턴 Autarky\Application

enableExceptionHandling() 보호된 메소드

By default, uncaught exceptions in the application will simply be thrown again, meaning you have to call setExpectedException or similar if an exception is expected behaviour. If instead you want the application error handler to do its job and return a response, call this method.
protected enableExceptionHandling ( ) : void
리턴 void

setUp() 공개 메소드

public setUp ( )

tearDown() 공개 메소드

public tearDown ( )

프로퍼티 상세

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

The application instance.
protected Application,Autarky $app
리턴 Autarky\Application