/** * @Then /^I should see "([^"]*)"$/ */ public function iShouldSee($match) { if ($this->response instanceof \Exception) { throw $this->response; } PHPUnit_Framework_Assert::assertContains($match, $this->response->getContent()); }