public function tearDown() { if ($this->driver != null) { $this->driver->clearCurrentCookies(); $this->driver->quit(); } }