PHP 클래스 Sanpi\Behatch\Context\RestContext

상속: extends BaseContext
파일 보기 프로젝트 열기: behatch/contexts 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$request

공개 메소드들

메소드 설명
__construct ( Request $request )
iAddHeaderEqualTo ( $name, $value ) Add an header element in a request
iSendARequestTo ( $method, $url, Behat\Gherkin\Node\PyStringNode $body = null, $files = [] ) Sends a HTTP request
iSendARequestToWithBody ( $method, $url, Behat\Gherkin\Node\PyStringNode $body ) Sends a HTTP request with a body
iSendARequestToWithParameters ( $method, $url, Behat\Gherkin\Node\TableNode $datas ) Sends a HTTP request with a some parameters
printLastResponseHeaders ( )
printTheCorrespondingCurlCommand ( )
theHeaderShouldBeContains ( $name, $value ) Checks, whether the header name contains the given text
theHeaderShouldBeEqualTo ( $name, $value ) Checks, whether the header name is equal to given text
theHeaderShouldNotContain ( $name, $value ) Checks, whether the header name doesn't contain the given text
theHeaderShouldNotExist ( $name ) Checks, whether the header not exist
theResponseShouldBeEmpty ( ) Checks, whether the response content is null or empty string
theResponseShouldBeEncodedIn ( $encoding )
theResponseShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $expected ) Checks, whether the response content is equal to given text
theResponseShouldExpireInTheFuture ( ) Checks, that the response header expire is in the future

보호된 메소드들

메소드 설명
theHeaderShouldExist ( $name )

메소드 상세

__construct() 공개 메소드

public __construct ( Request $request )
$request Sanpi\Behatch\HttpCall\Request

iAddHeaderEqualTo() 공개 메소드

Add an header element in a request
public iAddHeaderEqualTo ( $name, $value )

iSendARequestTo() 공개 메소드

Sends a HTTP request
public iSendARequestTo ( $method, $url, Behat\Gherkin\Node\PyStringNode $body = null, $files = [] )
$body Behat\Gherkin\Node\PyStringNode

iSendARequestToWithBody() 공개 메소드

Sends a HTTP request with a body
public iSendARequestToWithBody ( $method, $url, Behat\Gherkin\Node\PyStringNode $body )
$body Behat\Gherkin\Node\PyStringNode

iSendARequestToWithParameters() 공개 메소드

Sends a HTTP request with a some parameters
public iSendARequestToWithParameters ( $method, $url, Behat\Gherkin\Node\TableNode $datas )
$datas Behat\Gherkin\Node\TableNode

printLastResponseHeaders() 공개 메소드

printTheCorrespondingCurlCommand() 공개 메소드

theHeaderShouldBeContains() 공개 메소드

Checks, whether the header name contains the given text
public theHeaderShouldBeContains ( $name, $value )

theHeaderShouldBeEqualTo() 공개 메소드

Checks, whether the header name is equal to given text
public theHeaderShouldBeEqualTo ( $name, $value )

theHeaderShouldExist() 보호된 메소드

protected theHeaderShouldExist ( $name )

theHeaderShouldNotContain() 공개 메소드

Checks, whether the header name doesn't contain the given text
public theHeaderShouldNotContain ( $name, $value )

theHeaderShouldNotExist() 공개 메소드

Checks, whether the header not exist
public theHeaderShouldNotExist ( $name )

theResponseShouldBeEmpty() 공개 메소드

Checks, whether the response content is null or empty string

theResponseShouldBeEncodedIn() 공개 메소드

public theResponseShouldBeEncodedIn ( $encoding )

theResponseShouldBeEqualTo() 공개 메소드

Checks, whether the response content is equal to given text
public theResponseShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $expected )
$expected Behat\Gherkin\Node\PyStringNode

theResponseShouldExpireInTheFuture() 공개 메소드

Checks, that the response header expire is in the future

프로퍼티 상세

$request 보호되어 있는 프로퍼티

protected $request