objectcache: Improve WANObjectCache test coverage
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 25 Sep 2017 23:21:40 +0000 (00:21 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 28 Sep 2017 17:59:09 +0000 (18:59 +0100)
commit6c8f3b9683b3647e7d9b090d964f261a3f347cd4
treee4753570786d34ec1236eed5880e3f313b1c271c
parent4b439ceef925c359a504273a4366005c90f79c5d
objectcache: Improve WANObjectCache test coverage

class WANObjectCache (methods: 40% -> 67%, lines: 65% -> 88%)

* Allow indirect coverage of protected/private utility methods from
  existing tests.
* Add basic test for setLogger().
* Add basic test for newEmpty().
* Add basic test for getQoS().

Change-Id: Ifb79ed2ff1febbd2f5477b8ed6319992ce88eb29
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php