/** * Stop Sahi browser session. */ public function stop() { if (!$this->started) { throw new Exception\ConnectionException('Client is not started'); } if ($this->browserAutoruned) { $this->con->stop(); } $this->started = false; }
/** * Stops a session * * @return boolean */ public function stop() { // do we need to rotate? if ($this->rotationInterval and $this->rotationTimer < time()) { $this->rotate(); } // stop the current session return $this->driver->stop(); }
/** * Stops the browser on the server. * * @return Browser Fluid interface */ public function stop() { $this->driver->stop(); return $this; }
function testStopWorksEvenIfNotCurrentlyRunning() { $this->loop->stop(); }