WebResponse: Implement statusHeader() using the new HttpStatus::header()
authorTimo Tijhof <krinklemail@gmail.com>
Sun, 24 May 2015 12:31:11 +0000 (14:31 +0200)
committerKrinkle <krinklemail@gmail.com>
Thu, 4 Jun 2015 02:27:30 +0000 (02:27 +0000)
commitf57b6af45b1cea7f93857b63716a685d2f55c2bf
treedb0c6d8285d97f1deeb71e6227e1649f49e3368a
parent7b835dd12649b7c474d4c9f42875a8a2b23eb032
WebResponse: Implement statusHeader() using the new HttpStatus::header()

* Convert existing use of WebResponse::header() for HTTP status headers
  to use this new statusHeader() method.

* Extend unit test forFauxResponse.

I'm not calling HttpStatus::header directly in code. We keep the abstraction
layer of WebResponse so that responses can continue to be mocked/fauxed without
affecting the outer HTTP response.

Change-Id: I8a536e16659fa88b54cffa1457efb889efa5fcd6
includes/MediaWiki.php
includes/OutputPage.php
includes/WebResponse.php
includes/actions/RawAction.php
includes/api/ApiMain.php
includes/page/Article.php
includes/page/ImagePage.php
tests/phpunit/includes/FauxResponseTest.php
thumb.php