PHP Класс Sanpi\Behatch\Context\JsonContext

Наследование: extends BaseContext
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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