PHP Класс TutuContext

Наследование: extends Behat\MinkExtension\Context\RawMinkContext, implements Behat\Behat\Context\SnippetAcceptingContext
Показать файл Открыть проект

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
makeHttpCall ( $method, $url, array $parameters = [], array $headers = [], null $body = null )

Описание методов

__construct() публичный Метод

public __construct ( $webPath )

createWorkDir() публичный Метод

public createWorkDir ( )

httpClientSendGetRequestOnWithBody() публичный Метод

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

httpClientSendGetRequestOnWithFollowingHeaders() публичный Метод

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

httpClientSendPostRequestOnWithFollowingParameters() публичный Метод

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

httpClientSendRequestOn() публичный Метод

public httpClientSendRequestOn ( $method, $url )

killEveryProcessRunningOnTuTuPort() публичный Метод

printLastResponse() публичный Метод

public printLastResponse ( )

printLastResponseWhenScenarioFail() публичный Метод

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

removeWorkDir() публичный Метод

public removeWorkDir ( )

resetHttpCallAttempts() публичный Метод

responseShouldHaveFollowingHedaers() публичный Метод

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

responseStatusCodeShouldBe() публичный Метод

public responseStatusCodeShouldBe ( $expectedStatus )

theResponseContentShouldBeEmpty() публичный Метод

theResponseContentShouldBeEqualTo() публичный Метод

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

theResponseContentShouldMatchExpression() публичный Метод

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

thereIsAEmptyFile() публичный Метод

public thereIsAEmptyFile ( $fileName )

thereIsAFileWithFollowingContent() публичный Метод

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

thereIsAResourceFileWithFollowingContent() публичный Метод

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

thereIsARoutingFileWithFollowingContent() публичный Метод

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

tutuIsRunningOnHostAtPort() публичный Метод

public tutuIsRunningOnHostAtPort ( $host, $port )