PHP 클래스 TutuContext

상속: extends Behat\MinkExtension\Context\RawMinkContext, implements Behat\Behat\Context\SnippetAcceptingContext
파일 보기 프로젝트 열기: coduo/tutu

공개 메소드들

메소드 설명
__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 )