Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }
Ejemplo n.º 3
0
 /**
  * Stops the browser on the server.
  *
  * @return Browser Fluid interface
  */
 public function stop()
 {
     $this->driver->stop();
     return $this;
 }
Ejemplo n.º 4
0
 function testStopWorksEvenIfNotCurrentlyRunning()
 {
     $this->loop->stop();
 }