wiki.techinc.nl/tests/phpunit/includes/content
Timo Tijhof 447ce7e39a phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat
The default will remain PHPUnit 4.x due to PHP 5.5 support.

But, we should allow developers to run tests with newer PHPUnit
versions which are noticably faster (especially for code coverage
reports).

* <https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-5.4.0>
  PHPUnit 5 deprecates the getMock() shortcut for getMockBuilder()->getMock().
  It instead introduces the shortcut createMock() which has better defaults
  than getMockBuilder(). For example, it sets 'disableArgumentCloning' and
  other things by default.

  Going forward, code should either use getMockBuilder directly and configure
  it using the setter methods (instead of the confusing variadic arguments
  of getMock) or simply use the new minimalistic createMock method. This patch
  backports the createMock method to MediaWikiTestCase so that we can start
  using it.

Change-Id: I091c0289b21d2b1c876adba89529dc3e72b99af2
2017-04-06 00:44:32 +00:00
..
ContentHandlerTest.php phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat 2017-04-06 00:44:32 +00:00
CssContentHandlerTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
CssContentTest.php Use more short array syntax in comments (/tests/) 2016-07-10 17:23:29 +02:00
FileContentHandlerTest.php phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat 2017-04-06 00:44:32 +00:00
JavaScriptContentHandlerTest.php Swap the rest of array() -> [] 2016-03-30 22:04:58 +00:00
JavaScriptContentTest.php Remove Title::newFromRedirectRecurse() 2016-04-03 13:31:57 +01:00
JsonContentHandlerTest.php JsonContentHandler: Make sure makeEmptyContent() is valid JSON 2016-09-08 12:52:56 -07:00
JsonContentTest.php Remove support for $wgWellFormedXml=false 2016-05-12 17:40:01 -04:00
TextContentHandlerTest.php phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat 2017-04-06 00:44:32 +00:00
TextContentTest.php content: Refactor normalization of line endings code 2016-08-23 11:09:59 -07:00
WikitextContentHandlerTest.php phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat 2017-04-06 00:44:32 +00:00
WikitextContentTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
WikitextStructureTest.php Merge "Add DEFAULTSORT to search index field data" 2016-09-01 14:51:41 +00:00