PHP 클래스 PHPUnit_Extensions_TestDecorator, qcodo

Use TestDecorator as the base class for defining new test decorators. Test decorator subclasses can be introduced to add behaviour before or after a test is run.
저자: Sebastian Bergmann ([email protected])
상속: extends PHPUnit_Framework_Assert, implements PHPUnit_Framework_Test, implements PHPUnit_Framework_SelfDescribing
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$test object The Test to be decorated.

공개 메소드들

메소드 설명
__construct ( PHPUnit_Framework_Test $test ) Constructor.
basicRun ( PHPUnit_Framework_TestResult $result ) Runs the test and collects the result in a TestResult.
count ( ) : integer Counts the number of test cases that will be run by this test.
getTest ( ) : PHPUnit_Framework_Test Returns the test to be run.
run ( PHPUnit_Framework_TestResult $result = NULL ) : PHPUnit_Framework_TestResult Runs the decorated test and collects the result in a TestResult.
toString ( ) : string Returns a string representation of the test.

보호된 메소드들

메소드 설명
createResult ( ) : PHPUnit_Framework_TestResult Creates a default TestResult object.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( PHPUnit_Framework_Test $test )
$test PHPUnit_Framework_Test

basicRun() 공개 메소드

Runs the test and collects the result in a TestResult.
public basicRun ( PHPUnit_Framework_TestResult $result )
$result PHPUnit_Framework_TestResult

count() 공개 메소드

Counts the number of test cases that will be run by this test.
public count ( ) : integer
리턴 integer

createResult() 보호된 메소드

Creates a default TestResult object.
protected createResult ( ) : PHPUnit_Framework_TestResult
리턴 PHPUnit_Framework_TestResult

getTest() 공개 메소드

Returns the test to be run.
public getTest ( ) : PHPUnit_Framework_Test
리턴 PHPUnit_Framework_Test

run() 공개 메소드

Runs the decorated test and collects the result in a TestResult.
public run ( PHPUnit_Framework_TestResult $result = NULL ) : PHPUnit_Framework_TestResult
$result PHPUnit_Framework_TestResult
리턴 PHPUnit_Framework_TestResult

toString() 공개 메소드

Returns a string representation of the test.
public toString ( ) : string
리턴 string

프로퍼티 상세

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

The Test to be decorated.
protected object $test
리턴 object