PHP Class SwaggerContext

Inheritance: implements Behat\Behat\Context\Context
Show file Open project: api-platform/core

Public Methods

Method Description
__construct ( )
assertNbOperationsExist ( $nb, $className )
assertNbPropertiesExist ( $nb, $className )
assertNodeValueIs ( $nodeName, $className, $value )
assertOperationNodeValueIs ( $nodeName, $operationMethod, $className, $value )
assertPropertyExist ( $propertyName, $className )
assertPropertyIsRequired ( string $propertyName, string $className )
assertPropertyNodeValueIs ( $nodeName, $propertyName, $className, $value )
assertThePathExist ( $path )
assertTheSwaggerClassExist ( $className )
assertTheSwaggerClassNotExist ( $className )
gatherContexts ( Behat\Behat\Hook\Scope\BeforeScenarioScope $scope ) Gives access to the Behatch context.

Private Methods

Method Description
getClassInfos ( string $className ) : stdClass
getLastJsonResponse ( ) : stdClass
getOperation ( string $method, string $className ) : stdClass Gets an operation by its method name.
getOperations ( string $className ) : stdClass Gets all operations of a given class.
getProperties ( string $className ) : stdClass Gets all properties of a given class.
getProperty ( string $propertyName, string $className ) : stdClass

Method Details

__construct() public method

public __construct ( )

assertNbOperationsExist() public method

public assertNbOperationsExist ( $nb, $className )

assertNbPropertiesExist() public method

public assertNbPropertiesExist ( $nb, $className )

assertNodeValueIs() public method

public assertNodeValueIs ( $nodeName, $className, $value )

assertOperationNodeValueIs() public method

public assertOperationNodeValueIs ( $nodeName, $operationMethod, $className, $value )

assertPropertyExist() public method

public assertPropertyExist ( $propertyName, $className )

assertPropertyIsRequired() public method

public assertPropertyIsRequired ( string $propertyName, string $className )
$propertyName string
$className string

assertPropertyNodeValueIs() public method

public assertPropertyNodeValueIs ( $nodeName, $propertyName, $className, $value )

assertThePathExist() public method

public assertThePathExist ( $path )

assertTheSwaggerClassExist() public method

public assertTheSwaggerClassExist ( $className )

assertTheSwaggerClassNotExist() public method

public assertTheSwaggerClassNotExist ( $className )

gatherContexts() public method

Gives access to the Behatch context.
public gatherContexts ( Behat\Behat\Hook\Scope\BeforeScenarioScope $scope )
$scope Behat\Behat\Hook\Scope\BeforeScenarioScope