public function testAddHeader() { $request = new DefaultServiceRequest("token"); $headers = ["k" => "v"]; $this->assertTrue($request->addHeader("k", "v") instanceof DefaultServiceRequest); $this->assertEquals($headers, $request->getHeaders()); }