Пример #1
0
 /**
  * Sets the default Accept HTTP header to null (workaround to artificially remove it).
  *
  * @BeforeScenario
  */
 public function removeAcceptHeader()
 {
     $this->request->setHttpHeader('Accept', null);
 }
Пример #2
0
 /**
  * Sets the default Accept HTTP header to the JSON-LD mime type.
  *
  * Contains a workaround for BrowserKit (HTTP_Accept instead of Accept).
  *
  * @BeforeScenario
  */
 public function acceptJsonLd()
 {
     $this->request->setHttpHeader('HTTP_Accept', 'application/ld+json');
 }