Permit destructors in MediaWikiTestCaseTrait::createNoOpMock
authormainframe98 <k.s.werf@hotmail.com>
Fri, 30 Aug 2019 15:24:41 +0000 (17:24 +0200)
committerMainframe98 <k.s.werf@hotmail.com>
Fri, 30 Aug 2019 15:27:38 +0000 (15:27 +0000)
commit4941f2de91e82dce3a3e074ab5c2ae3358acb26d
tree94a6de62b3a76feae0e894c5e4801549fb94abf4
parentd6130cac5dfe0dc00a26b3ffcae82b0b2af527c7
Permit destructors in MediaWikiTestCaseTrait::createNoOpMock

709773ab5747 introduced this method, but its implementation
does not permit calls to __destruct. PHP documentation on destructors
says that they'll be called unconditionally, which makes using the
mock created with this method unusable for classes that implement
__destruct.

Bug: T231656
Change-Id: Icb4f978c78e726401d75627128c9c76f6f9afc87
tests/phpunit/MediaWikiTestCaseTrait.php