Exemplo n.º 1
0
 /**
  * @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']);
 }
Exemplo n.º 3
0
 /**
  * @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}'");
 }