SimpleSeleniumRemoteControl::isUp PHP Method

isUp() public method

public isUp ( )
    public function isUp()
    {
        return (bool) @fsockopen($this->_host, $this->_port, $errno, $errstr, 30);
    }

Usage Example

 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.');
 }