From af7de89fc4343519e6219e3ea59745f2918a8faf Mon Sep 17 00:00:00 2001 From: Markus Glaser Date: Mon, 2 Aug 2010 07:44:02 +0000 Subject: [PATCH] --- maintenance/tests/selenium/SeleniumTestSuite.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintenance/tests/selenium/SeleniumTestSuite.php b/maintenance/tests/selenium/SeleniumTestSuite.php index ca5e18283f..3613576795 100644 --- a/maintenance/tests/selenium/SeleniumTestSuite.php +++ b/maintenance/tests/selenium/SeleniumTestSuite.php @@ -2,6 +2,7 @@ class SeleniumTestSuite extends PHPUnit_Framework_TestSuite { private $selenium; + private $isSetUp = false; // Do not add line break after test output const CONTINUE_LINE = 1; @@ -9,6 +10,12 @@ class SeleniumTestSuite extends PHPUnit_Framework_TestSuite { const RESULT_ERROR = 3; public function setUp() { + // Hack because because PHPUnit version 3.0.6 which is on prototype does not + //run setUp as part of TestSuite::run + if ( $this->isSetUp ) { + return; + } + $this->isSetUp = true; $this->selenium = Selenium::getInstance(); $this->selenium->start(); $this->login(); -- 2.20.1