createNoOpMock() method for PHPUnit tests
authorAryeh Gregor <ayg@aryeh.name>
Wed, 28 Aug 2019 10:01:39 +0000 (13:01 +0300)
committerAryeh Gregor <ayg@aryeh.name>
Thu, 29 Aug 2019 15:00:37 +0000 (18:00 +0300)
commit709773ab57478dfc9cbc7dae9edf158e2f42f4fd
treea23a56ccdffda741d0bd9930f8f11533ea20db3d
parenteb4ac89d6690ed4504206de5678a9a50e5edaadf
createNoOpMock() method for PHPUnit tests

This is just a shortcut for a commonly-used pattern, when you want to
create a mock that's never supposed to have methods called.

Change-Id: Ia7267e3d3108c1ff94485f7e44bf409808a762be
tests/phpunit/MediaWikiTestCaseTrait.php
tests/phpunit/includes/MovePageTest.php
tests/phpunit/includes/watcheditem/WatchedItemStoreUnitTest.php
tests/phpunit/unit/includes/filebackend/lockmanager/LockManagerGroupFactoryTest.php