Index: trunk/phase3/maintenance/tests/selenium/Selenium.php |
— | — | @@ -149,6 +149,47 @@ |
150 | 150 | return $t; |
151 | 151 | } |
152 | 152 | |
| 153 | + public function setUrl( $url ) { |
| 154 | + self::$url = $url; |
| 155 | + } |
| 156 | + |
| 157 | + static public function getUrl() { |
| 158 | + return self::$url; |
| 159 | + } |
| 160 | + |
| 161 | + public function setPort( $port ) { |
| 162 | + $this->port = $port; |
| 163 | + } |
| 164 | + |
| 165 | + public function setUser( $user ) { |
| 166 | + $this->user = $user; |
| 167 | + } |
| 168 | + |
| 169 | + public function setPass( $pass ) { |
| 170 | + $this->pass = $pass; |
| 171 | + } |
| 172 | + |
| 173 | + public function setHost( $host ) { |
| 174 | + $this->host = $host; |
| 175 | + } |
| 176 | + |
| 177 | + public function setVerbose( $verbose ) { |
| 178 | + $this->verbose = $verbose; |
| 179 | + } |
| 180 | + |
| 181 | + public function setBrowser( $b ) { |
| 182 | + $browsers = $this->setupBrowsers(); |
| 183 | + if ( !isset( $browsers[$b] ) ) { |
| 184 | + throw new MWException( "Invalid Browser: $b.\n" ); |
| 185 | + } |
| 186 | + $this->browser = $browsers[$b]; |
| 187 | + } |
| 188 | + |
| 189 | + public function __call( $name, $args ) { |
| 190 | + $t = call_user_func_array( array( $this->tester, $name), $args ); |
| 191 | + return $t; |
| 192 | + } |
| 193 | + |
153 | 194 | // Prevent external cloning |
154 | 195 | protected function __clone() { } |
155 | 196 | // Prevent external construction |