public function testDeterminesIfResourceIsAvailable()
 {
     $handle = curl_init($this->getServer()->getUrl());
     $h = new CurlHandle($handle, array());
     $this->assertTrue($h->isAvailable());
     // Mess it up by closing the handle
     curl_close($handle);
     $this->assertFalse($h->isAvailable());
     // Mess it up by unsetting the handle
     $handle = null;
     $this->assertFalse($h->isAvailable());
 }