public theResponseShouldBeEqualTo ( Behat\Gherkin\Node\PyStringNode $expected ) | ||
$expected | Behat\Gherkin\Node\PyStringNode |
public function theResponseShouldBeEqualTo(PyStringNode $expected)
{
$expected = str_replace('\\"', '"', $expected);
$actual = $this->request->getContent();
$message = "The string '{$expected}' is not equal to the response of the current page";
$this->assertEquals($expected, $actual, $message);
}