PHP 클래스 PHPUnit_Extensions_Story_Scenario, qcodo

저자: Mattis Stordalen Flister ([email protected])
저자: Sebastian Bergmann ([email protected])
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$lastCalledMethod string
$steps array
$test PHPUnit_Extensions_Story_TestCase

공개 메소드들

메소드 설명
__construct ( $test ) Constructor.
_and ( array $arguments ) : PHPUnit_Extensions_Story_TestCase Add another step of the same type as the step that was added before.
getSteps ( ) : array Returns the steps of this scenario.
given ( array $arguments ) : PHPUnit_Extensions_Story_TestCase Adds a "Given" step to the scenario.
run ( array &$world ) Runs this scenario.
then ( array $arguments ) : PHPUnit_Extensions_Story_TestCase Adds a "Then" step to the scenario.
when ( array $arguments ) : PHPUnit_Extensions_Story_TestCase Adds a "When" step to the scenario.

보호된 메소드들

메소드 설명
addStep ( PHPUnit_Extensions_Story_Step $step ) : PHPUnit_Extensions_Story_TestCase Adds a step to the scenario.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $test )

_and() 공개 메소드

Add another step of the same type as the step that was added before.
public _and ( array $arguments ) : PHPUnit_Extensions_Story_TestCase
$arguments array
리턴 PHPUnit_Extensions_Story_TestCase

addStep() 보호된 메소드

Adds a step to the scenario.
protected addStep ( PHPUnit_Extensions_Story_Step $step ) : PHPUnit_Extensions_Story_TestCase
$step PHPUnit_Extensions_Story_Step
리턴 PHPUnit_Extensions_Story_TestCase

getSteps() 공개 메소드

Returns the steps of this scenario.
public getSteps ( ) : array
리턴 array

given() 공개 메소드

Adds a "Given" step to the scenario.
public given ( array $arguments ) : PHPUnit_Extensions_Story_TestCase
$arguments array
리턴 PHPUnit_Extensions_Story_TestCase

run() 공개 메소드

Runs this scenario.
public run ( array &$world )
$world array

then() 공개 메소드

Adds a "Then" step to the scenario.
public then ( array $arguments ) : PHPUnit_Extensions_Story_TestCase
$arguments array
리턴 PHPUnit_Extensions_Story_TestCase

when() 공개 메소드

Adds a "When" step to the scenario.
public when ( array $arguments ) : PHPUnit_Extensions_Story_TestCase
$arguments array
리턴 PHPUnit_Extensions_Story_TestCase

프로퍼티 상세

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

protected string $lastCalledMethod
리턴 string

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

protected array $steps
리턴 array

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

protected PHPUnit_Extensions_Story_TestCase $test
리턴 PHPUnit_Extensions_Story_TestCase