/** * @covers Robo47_Curl::getBody */ public function testGetBody() { $curl = new Robo47_Curl('http://example.com', true); $curl->setOption(CURLOPT_HEADER, true); $curl->exec(); $bodyWithoutHeaders = $curl->getBody(true); $bodyWithHeaders = $curl->getBody(false); $this->assertGreaterThan(strlen($bodyWithoutHeaders), strlen($bodyWithHeaders)); }