/** * @covers \Cougar\RestClient\CurlWrapper::exec * @todo Come up with more combinations; ideally, on a test service */ public function testExecGetWithUrlFields() { $url = "http://www.byu.edu"; $url_fields = array("list", "of", "url", "fields"); #$get_fields = array("name1" => "value1", "name2" => "value2"); $this->assertNull($this->object->setURL($url)); $this->assertNull($this->object->setURLFields($url_fields)); # Change this when we have better servers! $this->assertEquals(200, $this->object->exec()); $info = $this->object->getInfo(); $this->assertArrayHasKey("url", $info); $this->assertEquals("http://www.byu.edu/errors/404.html", $info["url"]); }