diff options
author | umherirrender <umherirrender_de.wp@web.de> | 2014-07-21 14:47:42 +0200 |
---|---|---|
committer | umherirrender <umherirrender_de.wp@web.de> | 2014-07-24 11:53:04 +0200 |
commit | 4ee680a8b36a5ea9f97dbb349b45cbcbca492384 (patch) | |
tree | 173bc6dff49ae7a3e922d069e66204e12b458244 /tests/phpunit/includes/StatusTest.php | |
parent | d1d6cb7bc3a134cfd153ed7eb9fcdafa5c1fd193 (diff) | |
download | mediawikicore-4ee680a8b36a5ea9f97dbb349b45cbcbca492384.tar.gz mediawikicore-4ee680a8b36a5ea9f97dbb349b45cbcbca492384.zip |
Fixed spacing
- Removed spaces after not operator (!)
- Removed spaces inside array index
- use tab as indent instead of spaces
- Add newline at end of file
- Removed spaces after casts
Change-Id: I9ba17c4385fcb43d38998d45f89cf42952bc791b
Diffstat (limited to 'tests/phpunit/includes/StatusTest.php')
-rw-r--r-- | tests/phpunit/includes/StatusTest.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/phpunit/includes/StatusTest.php b/tests/phpunit/includes/StatusTest.php index 9e2f5b8ae701..b2e44593be61 100644 --- a/tests/phpunit/includes/StatusTest.php +++ b/tests/phpunit/includes/StatusTest.php @@ -327,7 +327,7 @@ class StatusTest extends MediaWikiLangTestCase { public static function provideGetWikiTextAndHtml() { $testCases = array(); - $testCases[ 'GoodStatus' ] = array( + $testCases['GoodStatus'] = array( new Status(), "Internal error: Status::getWikiText called for a good result, this is incorrect\n", "<p>Internal error: Status::getWikiText called for a good result, this is incorrect\n</p>", @@ -335,7 +335,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->ok = false; - $testCases[ 'GoodButNoError' ] = array( + $testCases['GoodButNoError'] = array( $status, "Internal error: Status::getWikiText: Invalid result object: no error text but not OK\n", "<p>Internal error: Status::getWikiText: Invalid result object: no error text but not OK\n</p>", @@ -343,7 +343,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( 'fooBar!' ); - $testCases[ '1StringWarning' ] = array( + $testCases['1StringWarning'] = array( $status, "<fooBar!>", "<p><fooBar!>\n</p>", @@ -352,7 +352,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( 'fooBar!' ); $status->warning( 'fooBar2!' ); - $testCases[ '2StringWarnings' ] = array( + $testCases['2StringWarnings'] = array( $status, "* <fooBar!>\n* <fooBar2!>\n", "<ul><li> <fooBar!></li>\n<li> <fooBar2!></li></ul>\n", @@ -360,7 +360,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) ); - $testCases[ '1MessageWarning' ] = array( + $testCases['1MessageWarning'] = array( $status, "<fooBar!>", "<p><fooBar!>\n</p>", @@ -369,7 +369,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) ); $status->warning( new Message( 'fooBar2!' ) ); - $testCases[ '2MessageWarnings' ] = array( + $testCases['2MessageWarnings'] = array( $status, "* <fooBar!>\n* <fooBar2!>\n", "<ul><li> <fooBar!></li>\n<li> <fooBar2!></li></ul>\n", @@ -399,7 +399,7 @@ class StatusTest extends MediaWikiLangTestCase { public static function provideGetMessage() { $testCases = array(); - $testCases[ 'GoodStatus' ] = array( + $testCases['GoodStatus'] = array( new Status(), array( "Status::getMessage called for a good result, this is incorrect\n" ), 'internalerror_info' @@ -407,7 +407,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->ok = false; - $testCases[ 'GoodButNoError' ] = array( + $testCases['GoodButNoError'] = array( $status, array( "Status::getMessage: Invalid result object: no error text but not OK\n" ), 'internalerror_info' @@ -415,7 +415,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( 'fooBar!' ); - $testCases[ '1StringWarning' ] = array( + $testCases['1StringWarning'] = array( $status, array(), 'fooBar!' @@ -437,7 +437,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) ); - $testCases[ '1MessageWarning' ] = array( + $testCases['1MessageWarning'] = array( $status, array( 'foo', 'bar' ), 'fooBar!' @@ -446,7 +446,7 @@ class StatusTest extends MediaWikiLangTestCase { $status = new Status(); $status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) ); $status->warning( new Message( 'fooBar2!' ) ); - $testCases[ '2MessageWarnings' ] = array( + $testCases['2MessageWarnings'] = array( $status, array( new Message( 'fooBar!', array( 'foo', 'bar' ) ), new Message( 'fooBar2!' ) ), "* \$1\n* \$2" |