public function endOfTest(PHPUnit_Extensions_Selenium2TestCase_Session $session) { $session->stop(); }
/** * @throws RuntimeException */ protected function runTest() { $driver = $this->getDriver(); if (self::$shareSession and self::$sharedSessionUrl !== NULL) { $this->session = new PHPUnit_Extensions_Selenium2TestCase_Session($driver, self::$sharedSessionUrl, $this->browserUrl); $this->session->window(''); } else { $this->session = $driver->startSession($this->browser, $this->browserUrl); self::$sharedSessionUrl = $this->session->getSessionUrl(); } parent::runTest(); if (!empty($this->verificationErrors)) { $this->fail(implode("\n", $this->verificationErrors)); } if (!self::$shareSession) { $this->session->stop(); } }