/** * Runs the test if the Selenium RC Server is reachable. * * If the server is not reachable, the tests will be marked as skipped, and * a message will be displayed giving a hint on which host/port the client * was looking for the Selenium server. * * @see PHPUnit_Extensions_SeleniumTestCase::runTest() * * @return void */ protected function runTest() { if ($this->isSeleniumServerRunning()) { parent::runTest(); } else { $this->markTestSkipped('Selenium RC server not reachable (host=' . $this->getSeleniumHost() . ', port=' . $this->getSeleniumPort() . ').'); } }
protected function runTest() { try { return parent::runTest(); } catch (Exception $e) { if (Xtest::getArg('debug')) { echo PHP_EOL . "got '" . $e->getMessage() . "' exception. press any key to continue.." . PHP_EOL; ob_end_flush(); fgets(STDIN); } throw $e; } }