isSetUp ) { return; } $this->isSetUp = true; $this->selenium = Selenium::getInstance(); $this->selenium->start(); $this->selenium->open( $this->selenium->getUrl() . '/index.php?setupTestSuite=' . $this->getName() ); if ( $this->loginBeforeTests ) { $this->login(); } } public function tearDown() { $this->selenium->open( $this->selenium->getUrl() . '/index.php?clearTestSuite=' . $this->getName() ); $this->selenium->stop(); } public function login() { $this->selenium->login(); } public function loadPage( $title, $action ) { $this->selenium->loadPage( $title, $action ); } protected function setLoginBeforeTests( $loginBeforeTests = true ) { $this->loginBeforeTests = $loginBeforeTests; } }