more follow-up to r65715: coding style tweaks, etc.
[lhc/web/wiklou.git] / maintenance / tests / selenium / SeleniumTestSuite.php
1 <?php
2 if ( !defined( 'MEDIAWIKI' ) || !defined( 'SELENIUMTEST' ) ) {
3 echo "This script cannot be run standalone";
4 exit( 1 );
5 }
6
7 // Do not add line break after test output
8 define( 'MW_TESTLOGGER_CONTINUE_LINE', 1 );
9 define( 'MW_TESTLOGGER_RESULT_OK', 2 );
10 define( 'MW_TESTLOGGER_RESULT_ERROR', 3 );
11
12 class SeleniumTestSuite extends PHPUnit_Framework_TestSuite {
13 private $selenium;
14
15 public function setUp() {
16 $this->selenium = Selenium::getInstance();
17 $this->selenium->start();
18 $this->login();
19 //$this->loadPage( 'Testpage', 'edit' );
20 }
21
22 public function tearDown() {
23 $this->selenium->stop();
24 }
25
26 public function login() {
27 $this->selenium->login();
28 }
29
30 public function loadPage( $title, $action ) {
31 $this->selenium->loadPage( $title, $action );
32 }
33 }
34