Clean up tests for FauxRequest/WebRequest
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 9 Sep 2016 22:35:19 +0000 (15:35 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 9 Sep 2016 22:35:19 +0000 (15:35 -0700)
commit3de9d6721e2adbaecbd276b47cc7859563392b0d
tree728eba1d6bb993221f326c0d3be649527df1608d
parentb11107325fd034fdd28a40afe43a6e120236b6b9
Clean up tests for FauxRequest/WebRequest

Follows-up 1ac5474b7b and d18d030d57.

* Always mock WebRequest in WebRequestTest.
  Avoid using FauxRequest, can easily cause false positives (it's already
  avoided in one case of that reason).

* Add a few smoke/integration tests in FauxRequest to make sure the parent
  methods work as expected, given the internal method being overridden
  in FauxRequest.

Change-Id: I1bf528f3c578ecb171a3ff4f17b26f9bb02b4f47
tests/phpunit/includes/FauxRequestTest.php
tests/phpunit/includes/WebRequestTest.php