PHP Class HydraContext

Inheritance: implements Behat\Behat\Context\Context
Mostra 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 )
assertPropertyIsNotReadable ( $propertyName, $className )
assertPropertyIsReadable ( $propertyName, $className )
assertPropertyIsRequired ( $propertyName, $className )
assertPropertyIsWritable ( $propertyName, $className )
assertPropertyNodeValueIs ( $nodeName, $propertyName, $className, $value )
assertPropertyNotExist ( $propertyName, $className )
assertTheHydraClassExist ( $className )
assertTheHydraClassNotExist ( $className )
gatherContexts ( Behat\Behat\Hook\Scope\BeforeScenarioScope $scope ) Gives access to the Behatch context.

Private Methods

Method Description
getClassInfos ( string $className ) : array Gets information about a class.
getLastJsonResponse ( ) : array Gets the last JSON response.
getOperation ( string $method, string $className ) : array Gets an operation by its method name.
getOperations ( string $className ) : array Gets all operations of a given class.
getProperties ( string $className ) : array Gets all properties of a given class.
getProperty ( string $propertyName, string $className ) : array

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 )

assertPropertyIsNotReadable() public method

public assertPropertyIsNotReadable ( $propertyName, $className )

assertPropertyIsReadable() public method

public assertPropertyIsReadable ( $propertyName, $className )

assertPropertyIsRequired() public method

public assertPropertyIsRequired ( $propertyName, $className )

assertPropertyIsWritable() public method

public assertPropertyIsWritable ( $propertyName, $className )

assertPropertyNodeValueIs() public method

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

assertPropertyNotExist() public method

public assertPropertyNotExist ( $propertyName, $className )

assertTheHydraClassExist() public method

public assertTheHydraClassExist ( $className )

assertTheHydraClassNotExist() public method

public assertTheHydraClassNotExist ( $className )

gatherContexts() public method

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