/** * @deprecated since 2.3 * @static * @param mixed $pattern * @param mixed $string * @param string $message * @return void */ public static function assertPattern($pattern, $string, $message = '') { parent::assertRegExp($pattern, $string, $message); }
public static function assertRegExp($a, $b) { return parent::assertRegExp($a, $b, debug_backtrace()[1]['function']); }
/** * @Then I should get a successful response with format :format */ public function iShouldGetASuccessfulResponseWithFormat($format) { $this->iShouldGetASuccessfulResponse(); $actual = $this->getResponseHeaders('content-type')[0]; Assertions::assertRegExp("~{$format}~i", $actual, "Response type should match '{$format}'"); }