protected function see($text, $negate = false) { $method = $negate ? 'assertNotRegExp' : 'assertRegExp'; $this->{$method}('/' . preg_quote($text, '/') . '/i', $this->response->getContent()); return $this; }