GoogleSpreadsheet\Tests\Google\Spreadsheet\DefaultServiceRequestTest::testAddHeader PHP Method

testAddHeader() public method

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