X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FStatusTest.php;h=c95e69b60c713a9ffefb05a52344b1a956596b18;hb=dc71f6cf02dcd5cc467382c5b72861d7b75aa764;hp=291ed315543e88d7c522d61d5fbd7ba2f8e582cf;hpb=23f5395a8c772d8076ef7033aac43945e963e40c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/StatusTest.php b/tests/phpunit/includes/StatusTest.php index 291ed31554..c95e69b60c 100644 --- a/tests/phpunit/includes/StatusTest.php +++ b/tests/phpunit/includes/StatusTest.php @@ -64,7 +64,16 @@ class StatusTest extends MediaWikiLangTestCase { $this->assertTrue( $status->ok ); $status = Status::newFatal( 'foo', 1, 2 ); $this->assertFalse( $status->ok ); - $this->assertArrayEquals( array( array( 'type' => 'error', 'message' => 'foo', 'params' => array( 1, 2 ) ) ), $status->errors ); + $this->assertArrayEquals( + array( + array( + 'type' => 'error', + 'message' => 'foo', + 'params' => array( 1, 2 ) + ) + ), + $status->errors + ); } /** @@ -439,14 +448,14 @@ class StatusTest extends MediaWikiLangTestCase { // and the first call to the setUp method. Because of that you can't access any variables // you create there from within a data provider." // http://phpunit.de/manual/3.7/en/writing-tests-for-phpunit.html -// $status = new Status(); -// $status->warning( 'fooBar!' ); -// $status->warning( 'fooBar2!' ); -// $testCases[ '2StringWarnings' ] = array( -// $status, -// array( new Message( 'fooBar!' ), new Message( 'fooBar2!' ) ), -// "* \$1\n* \$2" -// ); +// $status = new Status(); +// $status->warning( 'fooBar!' ); +// $status->warning( 'fooBar2!' ); +// $testCases[ '2StringWarnings' ] = array( +// $status, +// array( new Message( 'fooBar!' ), new Message( 'fooBar2!' ) ), +// "* \$1\n* \$2" +// ); $status = new Status(); $status->warning( new Message( 'fooBar!', array( 'foo', 'bar' ) ) );