Beispiel #1
0
 public function givenTheRequestHasTheHeader($string)
 {
     $this->request->getHeaders()->set($string, true);
 }
Beispiel #2
0
 private function isMapping(WebRequest $request)
 {
     return $this->boxes->isMapping() && !$request->getHeaders()->has(self::HEADER_NO_BOXING) && $request->getFormats()->contains('html');
 }
 public function thenIsShouldHaveNoHeader($key)
 {
     $this->spec->assertFalse($this->request->getHeaders()->has($key));
 }