diff options
author | Antoine Musso <hashar@free.fr> | 2013-01-28 11:27:15 +0100 |
---|---|---|
committer | Antoine Musso <hashar@free.fr> | 2013-01-28 12:14:26 +0100 |
commit | 0fd05285d768d8db8bf3de2c4f84a3b2aed467ed (patch) | |
tree | 75406f4bd4825c90d17b6b2b14dc1ec5f16a700b /tests/phpunit/includes/SeleniumConfigurationTest.php | |
parent | 6b620acc860ed229258afa0be774f34585cb6d49 (diff) | |
download | mediawikicore-0fd05285d768d8db8bf3de2c4f84a3b2aed467ed.tar.gz mediawikicore-0fd05285d768d8db8bf3de2c4f84a3b2aed467ed.zip |
pass codesniffer on tests/
Fix almost all occurences of the following sniffs:
Generic.CodeAnalysis.UselessOverridingMethod.Found
Generic.Formatting.NoSpaceAfterCast.SpaceFound
Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma
Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine
Generic.PHP.LowerCaseConstant.Found
PSR2.Classes.PropertyDeclaration.ScopeMissing
PSR2.Files.EndFileNewline.TooMany
PSR2.Methods.MethodDeclaration.StaticBeforeVisibility
Change-Id: I96aacef5bafe5a2bca659744fba1380999cfc37d
Diffstat (limited to 'tests/phpunit/includes/SeleniumConfigurationTest.php')
-rw-r--r-- | tests/phpunit/includes/SeleniumConfigurationTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/SeleniumConfigurationTest.php b/tests/phpunit/includes/SeleniumConfigurationTest.php index 8f6aafa36a7c..3989fad5e74f 100644 --- a/tests/phpunit/includes/SeleniumConfigurationTest.php +++ b/tests/phpunit/includes/SeleniumConfigurationTest.php @@ -161,7 +161,7 @@ testBrowser = "firefox" SeleniumConfig::getSeleniumSettings($seleniumSettings, $seleniumBrowsers, $seleniumTestSuites); - $this->assertEquals($seleniumSettings, $this->testSettings0 , + $this->assertEquals($seleniumSettings, $this->testSettings0, 'The selenium settings should have been read from the file defined in $wgSeleniumConfigFile' ); $this->assertEquals($seleniumBrowsers, $this->testBrowsers0, @@ -207,7 +207,7 @@ testBrowser = "firefox" private function writeToTempFile($textToWrite) { $this->tempFileName = tempnam(sys_get_temp_dir(), 'test_settings.'); $tempFile = fopen( $this->tempFileName, "w" ); - fwrite($tempFile , $textToWrite); + fwrite($tempFile, $textToWrite); fclose($tempFile); } |