PHP Class TutuContext

Inheritance: extends Behat\MinkExtension\Context\RawMinkContext, implements Behat\Behat\Context\SnippetAcceptingContext
Afficher le fichier Open project: coduo/tutu

Méthodes publiques

Méthode Description
__construct ( $webPath )
createWorkDir ( )
httpClientSendGetRequestOnWithBody ( $method, $url, Behat\Gherkin\Node\PyStringNode $body )
httpClientSendGetRequestOnWithFollowingHeaders ( $method, $url, Behat\Gherkin\Node\TableNode $headersTable )
httpClientSendPostRequestOnWithFollowingParameters ( $method, $url, Behat\Gherkin\Node\TableNode $parametersTable )
httpClientSendRequestOn ( $method, $url )
killEveryProcessRunningOnTuTuPort ( )
printLastResponse ( )
printLastResponseWhenScenarioFail ( Behat\Behat\Hook\Scope\AfterScenarioScope $scope )
removeWorkDir ( )
resetHttpCallAttempts ( )
responseShouldHaveFollowingHedaers ( Behat\Gherkin\Node\TableNode $responseHeaders )
responseStatusCodeShouldBe ( $expectedStatus )
theResponseContentShouldBeEmpty ( )
theResponseContentShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $expectedContent )
theResponseContentShouldMatchExpression ( Behat\Gherkin\Node\PyStringNode $pattern )
thereIsAEmptyFile ( $fileName )
thereIsAFileWithFollowingContent ( $filePath, Behat\Gherkin\Node\PyStringNode $fileContent )
thereIsAResourceFileWithFollowingContent ( $fileName, Behat\Gherkin\Node\PyStringNode $fileContent )
thereIsARoutingFileWithFollowingContent ( $fileName, Behat\Gherkin\Node\PyStringNode $fileContent )
tutuIsRunningOnHostAtPort ( $host, $port )

Private Methods

Méthode Description
makeHttpCall ( $method, $url, array $parameters = [], array $headers = [], null $body = null )

Method Details

__construct() public méthode

public __construct ( $webPath )

createWorkDir() public méthode

public createWorkDir ( )

httpClientSendGetRequestOnWithBody() public méthode

public httpClientSendGetRequestOnWithBody ( $method, $url, Behat\Gherkin\Node\PyStringNode $body )
$body Behat\Gherkin\Node\PyStringNode

httpClientSendGetRequestOnWithFollowingHeaders() public méthode

public httpClientSendGetRequestOnWithFollowingHeaders ( $method, $url, Behat\Gherkin\Node\TableNode $headersTable )
$headersTable Behat\Gherkin\Node\TableNode

httpClientSendPostRequestOnWithFollowingParameters() public méthode

public httpClientSendPostRequestOnWithFollowingParameters ( $method, $url, Behat\Gherkin\Node\TableNode $parametersTable )
$parametersTable Behat\Gherkin\Node\TableNode

httpClientSendRequestOn() public méthode

public httpClientSendRequestOn ( $method, $url )

killEveryProcessRunningOnTuTuPort() public méthode

printLastResponse() public méthode

public printLastResponse ( )

printLastResponseWhenScenarioFail() public méthode

public printLastResponseWhenScenarioFail ( Behat\Behat\Hook\Scope\AfterScenarioScope $scope )
$scope Behat\Behat\Hook\Scope\AfterScenarioScope

removeWorkDir() public méthode

public removeWorkDir ( )

resetHttpCallAttempts() public méthode

responseShouldHaveFollowingHedaers() public méthode

public responseShouldHaveFollowingHedaers ( Behat\Gherkin\Node\TableNode $responseHeaders )
$responseHeaders Behat\Gherkin\Node\TableNode

responseStatusCodeShouldBe() public méthode

public responseStatusCodeShouldBe ( $expectedStatus )

theResponseContentShouldBeEmpty() public méthode

theResponseContentShouldBeEqualTo() public méthode

public theResponseContentShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $expectedContent )
$expectedContent Behat\Gherkin\Node\PyStringNode

theResponseContentShouldMatchExpression() public méthode

public theResponseContentShouldMatchExpression ( Behat\Gherkin\Node\PyStringNode $pattern )
$pattern Behat\Gherkin\Node\PyStringNode

thereIsAEmptyFile() public méthode

public thereIsAEmptyFile ( $fileName )

thereIsAFileWithFollowingContent() public méthode

public thereIsAFileWithFollowingContent ( $filePath, Behat\Gherkin\Node\PyStringNode $fileContent )
$fileContent Behat\Gherkin\Node\PyStringNode

thereIsAResourceFileWithFollowingContent() public méthode

public thereIsAResourceFileWithFollowingContent ( $fileName, Behat\Gherkin\Node\PyStringNode $fileContent )
$fileContent Behat\Gherkin\Node\PyStringNode

thereIsARoutingFileWithFollowingContent() public méthode

public thereIsARoutingFileWithFollowingContent ( $fileName, Behat\Gherkin\Node\PyStringNode $fileContent )
$fileContent Behat\Gherkin\Node\PyStringNode

tutuIsRunningOnHostAtPort() public méthode

public tutuIsRunningOnHostAtPort ( $host, $port )