Index: trunk/phase3/maintenance/tests/selenium/SeleniumTestSuite.php |
— | — | @@ -2,6 +2,7 @@ |
3 | 3 | |
4 | 4 | class SeleniumTestSuite extends PHPUnit_Framework_TestSuite { |
5 | 5 | private $selenium; |
| 6 | + private $isSetUp = false; |
6 | 7 | |
7 | 8 | // Do not add line break after test output |
8 | 9 | const CONTINUE_LINE = 1; |
— | — | @@ -9,6 +10,12 @@ |
10 | 11 | const RESULT_ERROR = 3; |
11 | 12 | |
12 | 13 | public function setUp() { |
| 14 | + // Hack because because PHPUnit version 3.0.6 which is on prototype does not |
| 15 | + //run setUp as part of TestSuite::run |
| 16 | + if ( $this->isSetUp ) { |
| 17 | + return; |
| 18 | + } |
| 19 | + $this->isSetUp = true; |
13 | 20 | $this->selenium = Selenium::getInstance(); |
14 | 21 | $this->selenium->start(); |
15 | 22 | $this->login(); |