public function thenPathNamedShouldHaveTheFollowingResponse($httpMethod, $pathName, PyStringNode $data)
    {
        $this->thenIShouldHaveAPathNamed($httpMethod, $pathName);

        $operation = $this->extractPath($httpMethod, $pathName);
        $operationResponseSchemaList = $operation['responses']['200']['schema']['allOf'];
        $decodedExpected = $this->jsonDecode($data->getRaw());

        Assert::assertContains($decodedExpected, $operationResponseSchemaList);
    }
public function thenPathNamedShouldHaveTheFollowingResponse($httpMethod, $pathName, PyStringNode $data)
    {
        $this->thenIShouldHaveAPathNamed($httpMethod, $pathName);

        $operation = $this->extractPath($httpMethod, $pathName);
        $operationResponseSchemaList = $operation['responses']['200']['schema']['allOf'];
        $decodedExpected = $this->jsonDecode($data->getRaw());

        Assert::assertContains($decodedExpected, $operationResponseSchemaList);
    }
public function thenPathNamedShouldHaveTheFollowingResponse ( $ httpMethod , $ pathName , PyStringNode $ data ) { $ this -> thenIShouldHaveAPathNamed ( $ httpMethod , $ pathName ) ; $ operation = $ this -> extractPath ( $ httpMethod , $ pathName ) ; $ operationResponseSchemaList = $ operation [ 'responses' ] [ '200' ] [ 'schema' ] [ 'allOf' ] ; $ decodedExpected = $ this -> jsonDecode ( $ data -> getRaw ( ) ) ; Assert :: assertContains ( $ decodedExpected , $ operationResponseSchemaList ) ; }
Error and response result are stored under the same key

@Then :httpMethod path named :pathName should have the following response:
@Then :httpMethod path named :pathName should have the following error:
Error and response result are stored under the same key