PHP Class ApplicationContext

Inheritance: implements Behat\Behat\Context\Context, implements PhpSpec\Matcher\MatchersProviderInterface
ファイルを表示 Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
exampleShouldHaveBeenSkipped ( $number )
examplesShouldHaveBeenRun ( $number )
iDescribeTheClass ( $class )
iDescribeTheClassWithTheConfig ( $class, $config )
iRunPhpspec ( $formatter = null, $option = null, $interactive = null, $spec = null )
iRunPhpspecAndAnswerToBothQuestions ( $answer )
iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode ( $answer, $option = null )
iRunPhpspecWithConfigAndAnswerIfIWantToGenerateTheCode ( $config, $answer )
iRunPhpspecWithTheSpec ( $spec )
iRunPhpspecWithTheSpecAndTheConfig ( $spec, $config )
iShouldBePromptedForCodeGeneration ( )
iShouldBePromptedWith ( Behat\Gherkin\Node\PyStringNode $question )
iShouldNotBePromptedForCodeGeneration ( )
iShouldSee ( $output )
iShouldSeeValidJunitOutput ( )
setupApplication ( )
theExitCodeShouldBe ( $code )
theSuiteShouldNotPass ( )
theSuiteShouldPass ( )
theTestsShouldBeRerun ( )
theTestsShouldNotBeRerun ( )

Private Methods

Method Description
addOptionToArguments ( string $option, array &$arguments )
checkApplicationOutput ( $output )
normalize ( $string )
setupPrompter ( )
setupReRunner ( )

Method Details

exampleShouldHaveBeenSkipped() public method

public exampleShouldHaveBeenSkipped ( $number )

examplesShouldHaveBeenRun() public method

public examplesShouldHaveBeenRun ( $number )

iDescribeTheClass() public method

public iDescribeTheClass ( $class )

iDescribeTheClassWithTheConfig() public method

public iDescribeTheClassWithTheConfig ( $class, $config )

iRunPhpspec() public method

public iRunPhpspec ( $formatter = null, $option = null, $interactive = null, $spec = null )

iRunPhpspecAndAnswerToBothQuestions() public method

iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode() public method

public iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode ( $answer, $option = null )

iRunPhpspecWithConfigAndAnswerIfIWantToGenerateTheCode() public method

iRunPhpspecWithTheSpec() public method

public iRunPhpspecWithTheSpec ( $spec )

iRunPhpspecWithTheSpecAndTheConfig() public method

public iRunPhpspecWithTheSpecAndTheConfig ( $spec, $config )

iShouldBePromptedForCodeGeneration() public method

iShouldBePromptedWith() public method

public iShouldBePromptedWith ( Behat\Gherkin\Node\PyStringNode $question )
$question Behat\Gherkin\Node\PyStringNode

iShouldNotBePromptedForCodeGeneration() public method

iShouldSee() public method

public iShouldSee ( $output )

iShouldSeeValidJunitOutput() public method

setupApplication() public method

public setupApplication ( )

theExitCodeShouldBe() public method

public theExitCodeShouldBe ( $code )

theSuiteShouldNotPass() public method

theSuiteShouldPass() public method

public theSuiteShouldPass ( )

theTestsShouldBeRerun() public method

theTestsShouldNotBeRerun() public method