| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function setHttpHeader($name, $value) |
||
| 24 | { |
||
| 25 | /* taken from Behat\Mink\Driver\BrowserKitDriver::setRequestHeader */ |
||
| 26 | $contentHeaders = array('CONTENT_LENGTH' => true, 'CONTENT_MD5' => true, 'CONTENT_TYPE' => true); |
||
| 27 | $name = str_replace('-', '_', strtoupper($name)); |
||
| 28 | |||
| 29 | // CONTENT_* are not prefixed with HTTP_ in PHP when building $_SERVER |
||
| 30 | if (!isset($contentHeaders[$name])) { |
||
| 31 | $name = 'HTTP_' . $name; |
||
| 32 | } |
||
| 33 | /* taken from Behat\Mink\Driver\BrowserKitDriver::setRequestHeader */ |
||
| 34 | |||
| 35 | $this->requestHeaders[$name] = $value; |
||
| 36 | } |
||
| 37 | |||
| 43 |