PHP 클래스 Sanpi\Behatch\Context\JsonContext

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

보호된 프로퍼티들

프로퍼티 타입 설명
$httpCallResultPool
$inspector

공개 메소드들

메소드 설명
__construct ( HttpCallResultPool $httpCallResultPool, $evaluationMode = 'javascript' )
printLastJsonResponse ( )
theJsonNodeShouldBeEqualTo ( $node, $text ) Checks, that given JSON node is equal to given value
theJsonNodeShouldBeEqualToTheNumber ( $node, $number ) Checks, that given JSON node is equal to the given number
theJsonNodeShouldBeEqualToTheString ( $node, $text ) Checks, that given JSON node is equal to the given string
theJsonNodeShouldBeFalse ( $node ) Checks, that given JSON node is false
theJsonNodeShouldBeNull ( $node ) Checks, that given JSON node is null
theJsonNodeShouldBeTrue ( $node ) Checks, that given JSON node is true
theJsonNodeShouldContain ( $node, $text ) Checks, that given JSON node contains given value
theJsonNodeShouldExist ( $name ) Checks, that given JSON node exist
theJsonNodeShouldHaveElements ( $node, $count ) Checks, that given JSON node has N element(s)
theJsonNodeShouldNotBeNull ( $name ) Checks, that given JSON node is not null.
theJsonNodeShouldNotContain ( $node, $text ) Checks, that given JSON node does not contain given value
theJsonNodeShouldNotExist ( $name ) Checks, that given JSON node does not exist
theJsonNodesShoudBeEqualTo ( Behat\Gherkin\Node\TableNode $nodes ) Checks, that given JSON nodes are equal to givens values
theJsonNodesShoudContain ( Behat\Gherkin\Node\TableNode $nodes ) Checks, that given JSON nodes contains values
theJsonNodesShoudNotContain ( Behat\Gherkin\Node\TableNode $nodes ) Checks, that given JSON nodes does not contain given value
theJsonShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $content )
theJsonShouldBeInvalidAccordingToTheSchema ( $filename )
theJsonShouldBeValidAccordingToTheSchema ( $filename )
theJsonShouldBeValidAccordingToThisSchema ( Behat\Gherkin\Node\PyStringNode $schema )
theResponseShouldBeInJson ( ) Checks, that the response is correct JSON
theResponseShouldNotBeInJson ( ) Checks, that the response is not correct JSON

보호된 메소드들

메소드 설명
getJson ( )

비공개 메소드들

메소드 설명
checkSchemaFile ( $filename )

메소드 상세

__construct() 공개 메소드

public __construct ( HttpCallResultPool $httpCallResultPool, $evaluationMode = 'javascript' )
$httpCallResultPool Sanpi\Behatch\HttpCall\HttpCallResultPool

getJson() 보호된 메소드

protected getJson ( )

printLastJsonResponse() 공개 메소드

theJsonNodeShouldBeEqualTo() 공개 메소드

Checks, that given JSON node is equal to given value
public theJsonNodeShouldBeEqualTo ( $node, $text )

theJsonNodeShouldBeEqualToTheNumber() 공개 메소드

Checks, that given JSON node is equal to the given number
public theJsonNodeShouldBeEqualToTheNumber ( $node, $number )

theJsonNodeShouldBeEqualToTheString() 공개 메소드

Checks, that given JSON node is equal to the given string
public theJsonNodeShouldBeEqualToTheString ( $node, $text )

theJsonNodeShouldBeFalse() 공개 메소드

Checks, that given JSON node is false
public theJsonNodeShouldBeFalse ( $node )

theJsonNodeShouldBeNull() 공개 메소드

Checks, that given JSON node is null
public theJsonNodeShouldBeNull ( $node )

theJsonNodeShouldBeTrue() 공개 메소드

Checks, that given JSON node is true
public theJsonNodeShouldBeTrue ( $node )

theJsonNodeShouldContain() 공개 메소드

Checks, that given JSON node contains given value
public theJsonNodeShouldContain ( $node, $text )

theJsonNodeShouldExist() 공개 메소드

Checks, that given JSON node exist
public theJsonNodeShouldExist ( $name )

theJsonNodeShouldHaveElements() 공개 메소드

Checks, that given JSON node has N element(s)
public theJsonNodeShouldHaveElements ( $node, $count )

theJsonNodeShouldNotBeNull() 공개 메소드

Checks, that given JSON node is not null.
public theJsonNodeShouldNotBeNull ( $name )

theJsonNodeShouldNotContain() 공개 메소드

Checks, that given JSON node does not contain given value
public theJsonNodeShouldNotContain ( $node, $text )

theJsonNodeShouldNotExist() 공개 메소드

Checks, that given JSON node does not exist
public theJsonNodeShouldNotExist ( $name )

theJsonNodesShoudBeEqualTo() 공개 메소드

Checks, that given JSON nodes are equal to givens values
public theJsonNodesShoudBeEqualTo ( Behat\Gherkin\Node\TableNode $nodes )
$nodes Behat\Gherkin\Node\TableNode

theJsonNodesShoudContain() 공개 메소드

Checks, that given JSON nodes contains values
public theJsonNodesShoudContain ( Behat\Gherkin\Node\TableNode $nodes )
$nodes Behat\Gherkin\Node\TableNode

theJsonNodesShoudNotContain() 공개 메소드

Checks, that given JSON nodes does not contain given value
public theJsonNodesShoudNotContain ( Behat\Gherkin\Node\TableNode $nodes )
$nodes Behat\Gherkin\Node\TableNode

theJsonShouldBeEqualTo() 공개 메소드

public theJsonShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $content )
$content Behat\Gherkin\Node\PyStringNode

theJsonShouldBeInvalidAccordingToTheSchema() 공개 메소드

theJsonShouldBeValidAccordingToTheSchema() 공개 메소드

theJsonShouldBeValidAccordingToThisSchema() 공개 메소드

public theJsonShouldBeValidAccordingToThisSchema ( Behat\Gherkin\Node\PyStringNode $schema )
$schema Behat\Gherkin\Node\PyStringNode

theResponseShouldBeInJson() 공개 메소드

Checks, that the response is correct JSON

theResponseShouldNotBeInJson() 공개 메소드

Checks, that the response is not correct JSON

프로퍼티 상세

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

protected $httpCallResultPool

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

protected $inspector