Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Revert "need to be able to check Response with variable fields" (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmac committed Jun 22, 2016
1 parent 003918a commit 5c711d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Context/RestContext.php
Expand Up @@ -667,9 +667,8 @@ public function theResponseShouldContainJson(PyStringNode $jsonString)
*/
public function theResponseBodyJsonEquals(PyStringNode $value)
{
$value_processed = $this->processForVariables($value);
list($data, $value_processed) = $this->theResponseShouldContainJson($value_processed);
$diff = $this->getArrayDiff($data, $value_processed);
list($data, $value) = $this->theResponseShouldContainJson($value);
$diff = $this->getArrayDiff($data, $value);
Assertions::assertEmpty($diff, 'Response body value mismatch! Extra item(s):'."\n".print_r($diff, true));
}

Expand Down

0 comments on commit 5c711d8

Please sign in to comment.