PHP Class TutuContext

Inheritance: extends Behat\MinkExtension\Context\RawMinkContext, implements Behat\Behat\Context\SnippetAcceptingContext
Datei anzeigen Open project: coduo/tutu

Public Methods

Method 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

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

Method Details

__construct() public method

public __construct ( $webPath )

createWorkDir() public method

public createWorkDir ( )

httpClientSendGetRequestOnWithBody() public method

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

httpClientSendGetRequestOnWithFollowingHeaders() public method

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

httpClientSendPostRequestOnWithFollowingParameters() public method

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

httpClientSendRequestOn() public method

public httpClientSendRequestOn ( $method, $url )

killEveryProcessRunningOnTuTuPort() public method

printLastResponse() public method

public printLastResponse ( )

printLastResponseWhenScenarioFail() public method

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

removeWorkDir() public method

public removeWorkDir ( )

resetHttpCallAttempts() public method

responseShouldHaveFollowingHedaers() public method

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

responseStatusCodeShouldBe() public method

public responseStatusCodeShouldBe ( $expectedStatus )

theResponseContentShouldBeEmpty() public method

theResponseContentShouldBeEqualTo() public method

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

theResponseContentShouldMatchExpression() public method

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

thereIsAEmptyFile() public method

public thereIsAEmptyFile ( $fileName )

thereIsAFileWithFollowingContent() public method

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

thereIsAResourceFileWithFollowingContent() public method

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

thereIsARoutingFileWithFollowingContent() public method

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

tutuIsRunningOnHostAtPort() public method

public tutuIsRunningOnHostAtPort ( $host, $port )