PHP Class ApplicationContext

Inheritance: implements Behat\Behat\Context\Context, implements PhpSpec\Matcher\MatchersProviderInterface
Afficher le fichier Open project: phpspec/phpspec Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

exampleShouldHaveBeenSkipped() public méthode

public exampleShouldHaveBeenSkipped ( $number )

examplesShouldHaveBeenRun() public méthode

public examplesShouldHaveBeenRun ( $number )

iDescribeTheClass() public méthode

public iDescribeTheClass ( $class )

iDescribeTheClassWithTheConfig() public méthode

public iDescribeTheClassWithTheConfig ( $class, $config )

iRunPhpspec() public méthode

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

iRunPhpspecAndAnswerToBothQuestions() public méthode

iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode() public méthode

public iRunPhpspecAndAnswerWhenAskedIfIWantToGenerateTheCode ( $answer, $option = null )

iRunPhpspecWithConfigAndAnswerIfIWantToGenerateTheCode() public méthode

iRunPhpspecWithTheSpec() public méthode

public iRunPhpspecWithTheSpec ( $spec )

iRunPhpspecWithTheSpecAndTheConfig() public méthode

public iRunPhpspecWithTheSpecAndTheConfig ( $spec, $config )

iShouldBePromptedForCodeGeneration() public méthode

iShouldBePromptedWith() public méthode

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

iShouldNotBePromptedForCodeGeneration() public méthode

iShouldSee() public méthode

public iShouldSee ( $output )

iShouldSeeValidJunitOutput() public méthode

setupApplication() public méthode

public setupApplication ( )

theExitCodeShouldBe() public méthode

public theExitCodeShouldBe ( $code )

theSuiteShouldNotPass() public méthode

theSuiteShouldPass() public méthode

public theSuiteShouldPass ( )

theTestsShouldBeRerun() public méthode

theTestsShouldNotBeRerun() public méthode