public function testToStringWithoutBody() { $this->request->setHost('test.bitpay.com'); $raw = array('POST https://test.bitpay.com:443/ HTTP/1.1', 'Content-Type: application/json'); $raw = implode("\r\n", $raw); $this->assertSame($raw, (string) $this->request); }