PHP Class SwaggerContext

Inheritance: implements Behat\Behat\Context\Context
Afficher le fichier Open project: api-platform/core

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( )

assertNbOperationsExist() public méthode

public assertNbOperationsExist ( $nb, $className )

assertNbPropertiesExist() public méthode

public assertNbPropertiesExist ( $nb, $className )

assertNodeValueIs() public méthode

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

assertOperationNodeValueIs() public méthode

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

assertPropertyExist() public méthode

public assertPropertyExist ( $propertyName, $className )

assertPropertyIsRequired() public méthode

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

assertPropertyNodeValueIs() public méthode

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

assertThePathExist() public méthode

public assertThePathExist ( $path )

assertTheSwaggerClassExist() public méthode

public assertTheSwaggerClassExist ( $className )

assertTheSwaggerClassNotExist() public méthode

public assertTheSwaggerClassNotExist ( $className )

gatherContexts() public méthode

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