public function theResponseContainsTheFollowingValue(TableNode $table)
    {
        $data = array();
        $item = $this->getGuzzleResult();

        foreach ($table->getRowsHash() as $field => $value) {
            $ref = &$data;
            foreach (explode('[', $field) as $part) {
                $part = trim($part, ']');
                $ref = &$ref[$part];
            }
            $ref = $this->addStoredValues($value);
        }

        $this->compareValues($item, $data);
    }
public function theResponseContainsTheFollowingValue(TableNode $table)
    {
        $data = array();
        $item = $this->getGuzzleResult();

        foreach ($table->getRowsHash() as $field => $value) {
            $ref = &$data;
            foreach (explode('[', $field) as $part) {
                $part = trim($part, ']');
                $ref = &$ref[$part];
            }
            $ref = $this->addStoredValues($value);
        }

        $this->compareValues($item, $data);
    }
public function theResponseContainsTheFollowingValue ( TableNode $ table ) { $ data = array ( ) ; $ item = $ this -> getGuzzleResult ( ) ; foreach ( $ table -> getRowsHash ( ) as $ field => $ value ) { $ ref = & $ data ; foreach ( explode ( '[' , $ field ) as $ part ) { $ part = trim ( $ part , ']' ) ; $ ref = & $ ref [ $ part ] ; } $ ref = $ this -> addStoredValues ( $ value ) ; } $ this -> compareValues ( $ item , $ data ) ; }
Check response contains specified values

Example: Then the response contains the following values:
| id         | 27          |
| importance | 3           |
| username   | bruce.wayne |
Example: And the response contains the following value:
| id | 27 |

@param TableNode $table Values specified in feature

@Then the response contains the following value(s):
Check response contains specified values