r70319 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70318‎ | r70319 | r70320 >
Date:07:44, 2 August 2010
Author:mglaser
Status:ok (Comments)
Tags:
Comment:
Modified paths:
  • /trunk/phase3/maintenance/tests/selenium/SeleniumTestSuite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/selenium/SeleniumTestSuite.php
@@ -2,6 +2,7 @@
33
44 class SeleniumTestSuite extends PHPUnit_Framework_TestSuite {
55 private $selenium;
 6+ private $isSetUp = false;
67
78 // Do not add line break after test output
89 const CONTINUE_LINE = 1;
@@ -9,6 +10,12 @@
1011 const RESULT_ERROR = 3;
1112
1213 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;
1320 $this->selenium = Selenium::getInstance();
1421 $this->selenium->start();
1522 $this->login();

Comments

#Comment by Mglaser (talk | contribs)   07:49, 2 August 2010

sorry, forgot the svn comment.

  • make the framework work with phpunit 3.0.6. credits to priyanka dhanda

Status & tagging log