/** * Overrides SimpleTestCase::skipIf to provide a boolean return value * * @param boolean $shouldSkip * @param string $message * @return boolean * @access public */ function skipIf($shouldSkip, $message = '%s') { parent::skipIf($shouldSkip, $message); return $shouldSkip; }
function skip() { $socket = new SimpleSocket($this->host, $this->port, 15, 8); parent::skipIf(!$socket->isOpen(), sprintf('The LiveHttpTestCase requires that a webserver runs at %s:%s', $this->host, $this->port)); }