/** @test */ public function writeContinueShouldSendContinueLineBeforeRealHeaders() { $conn = $this->getMock('React\\Socket\\ConnectionInterface'); $conn->expects($this->at(3))->method('write')->with("HTTP/1.1 100 Continue\r\n"); $conn->expects($this->at(4))->method('write')->with($this->stringContains("HTTP/1.1 200 OK\r\n")); $response = new Response($conn); $response->writeContinue(); $response->writeHead(); }
/** * Write a HTTP 100 (continue) header */ public function writeContinue() { $this->httpResponse->writeContinue(); }