Index: trunk/phase3/tests/phpunit/includes/SeleniumConfigurationTest.php |
— | — | @@ -121,9 +121,9 @@ |
122 | 122 | * @group SeleniumFramework |
123 | 123 | */ |
124 | 124 | public function testErrorOnIncorrectConfigFile() { |
125 | | - $seleniumSettings; |
126 | | - $seleniumBrowsers; |
127 | | - $seleniumTestSuites; |
| 125 | + $seleniumSettings = array(); |
| 126 | + $seleniumBrowsers = array(); |
| 127 | + $seleniumTestSuites = array(); |
128 | 128 | |
129 | 129 | SeleniumConfig::getSeleniumSettings($seleniumSettings, |
130 | 130 | $seleniumBrowsers, |
— | — | @@ -137,9 +137,9 @@ |
138 | 138 | * @group SeleniumFramework |
139 | 139 | */ |
140 | 140 | public function testErrorOnMissingConfigFile() { |
141 | | - $seleniumSettings; |
142 | | - $seleniumBrowsers; |
143 | | - $seleniumTestSuites; |
| 141 | + $seleniumSettings = array(); |
| 142 | + $seleniumBrowsers = array(); |
| 143 | + $seleniumTestSuites = array(); |
144 | 144 | global $wgSeleniumConfigFile; |
145 | 145 | $wgSeleniumConfigFile = ''; |
146 | 146 | SeleniumConfig::getSeleniumSettings($seleniumSettings, |
— | — | @@ -151,9 +151,9 @@ |
152 | 152 | * @group SeleniumFramework |
153 | 153 | */ |
154 | 154 | public function testUsesGlobalVarForConfigFile() { |
155 | | - $seleniumSettings; |
156 | | - $seleniumBrowsers; |
157 | | - $seleniumTestSuites; |
| 155 | + $seleniumSettings = array(); |
| 156 | + $seleniumBrowsers = array(); |
| 157 | + $seleniumTestSuites = array(); |
158 | 158 | global $wgSeleniumConfigFile; |
159 | 159 | $this->writeToTempFile( $this->testConfig0 ); |
160 | 160 | $wgSeleniumConfigFile = $this->tempFileName; |
— | — | @@ -177,9 +177,9 @@ |
178 | 178 | */ |
179 | 179 | public function testgetSeleniumSettings($sampleConfig, $expectedSettings, $expectedBrowsers, $expectedSuites ) { |
180 | 180 | $this->writeToTempFile( $sampleConfig ); |
181 | | - $seleniumSettings; |
182 | | - $seleniumBrowsers; |
183 | | - $seleniumTestSuites; |
| 181 | + $seleniumSettings = array(); |
| 182 | + $seleniumBrowsers = array(); |
| 183 | + $seleniumTestSuites = array(); |
184 | 184 | |
185 | 185 | SeleniumConfig::getSeleniumSettings($seleniumSettings, |
186 | 186 | $seleniumBrowsers, |
Index: trunk/phase3/tests/RunSeleniumTests.php |
— | — | @@ -153,9 +153,9 @@ |
154 | 154 | public function execute() { |
155 | 155 | global $wgServer, $wgScriptPath, $wgHooks; |
156 | 156 | |
157 | | - $seleniumSettings; |
158 | | - $seleniumBrowsers; |
159 | | - $seleniumTestSuites; |
| 157 | + $seleniumSettings = array(); |
| 158 | + $seleniumBrowsers = array(); |
| 159 | + $seleniumTestSuites = array(); |
160 | 160 | |
161 | 161 | $configFile = $this->getOption( 'seleniumConfig', '' ); |
162 | 162 | if ( strlen( $configFile ) > 0 ) { |