cURL\Tests\TestCase::validateTimeoutedResponse PHP Method

validateTimeoutedResponse() public method

public validateTimeoutedResponse ( cURL\Response $response )
$response cURL\Response
    public function validateTimeoutedResponse(Response $response)
    {
        $this->assertEmpty($response->getContent());
        $this->assertTrue($response->hasError());
        $this->assertEquals(CURLE_OPERATION_TIMEOUTED, $response->getError()->getCode());
        $this->assertNotEmpty($response->getError()->getMessage());
    }