public function testExceptionSetsStatusCode() {
global $wgOut;
$wgOut = $this->getMockWgOut();
- try{
+ try {
throw new ThrottledError();
- }
- catch( ThrottledError $e ) {
+ } catch ( ThrottledError $e ) {
$e->report();
$this->assertTrue( true );
}
->getMock();
$mock->expects( $this->once() )
->method( 'setStatusCode' )
- ->with( 503 );
+ ->with( 429 );
return $mock;
}