public function testCurlNoReturn() { $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => false)); ob_start(); $c->execute(); $output = ob_get_clean(); $info = $c->getinfo(); $version = $c->version(); unset($c); $this->assertEquals('1.7.0', trim($output)); $this->assertEquals('http://www.popphp.org/version', $info['url']); $this->assertEquals('text/plain', $info['content_type']); $this->assertTrue(isset($version['version'])); }