public function isUp() { return (bool) @fsockopen($this->_host, $this->_port, $errno, $errstr, 30); }
function skip() { $remote_control = new SimpleSeleniumRemoteControl("*custom opera -nosession", "http://simpletest.org/"); $this->skipUnless($remote_control->isUp(), 'Remote control tests desperately need a working Selenium Server.'); }