Merge "Fix WebInstaller style"
[lhc/web/wiklou.git] / tests / phpunit / includes / exception / ThrottledErrorTest.php
index ca67241..bdb143f 100644 (file)
@@ -23,10 +23,9 @@ class ThrottledErrorTest extends MediaWikiTestCase {
        public function testExceptionSetsStatusCode() {
                global $wgOut;
                $wgOut = $this->getMockWgOut();
-               try{
+               try {
                        throw new ThrottledError();
-               }
-               catch( ThrottledError $e ) {
+               } catch ( ThrottledError $e ) {
                        $e->report();
                        $this->assertTrue( true );
                }
@@ -38,7 +37,7 @@ class ThrottledErrorTest extends MediaWikiTestCase {
                        ->getMock();
                $mock->expects( $this->once() )
                        ->method( 'setStatusCode' )
-                       ->with( 503 );
+                       ->with( 429 );
                return $mock;
        }