public function get($url, $parameters = false) { if (!is_object($url)) { $url = new SimpleUrl($url); } if ($this->getUrl()) { $url = $url->makeAbsolute($this->getUrl()); } return $this->load($url, new SimpleGetEncoding($parameters)); }
function testBack() { $browser4 = new SimpleBrowser(); $browser4->get("http://www.google.com/"); $browser4->get("http://www.yahoo.com/"); $browser4->back(); $browser4->getTitle(); $this->assertEqual($browser4->getTitle(), 'Google'); }