dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "phpunit: Avoid use of deprecated getMock for PHPUnit 5 compat"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
Services
/
ServiceContainerTest.php
diff --git
a/tests/phpunit/includes/Services/ServiceContainerTest.php
b/tests/phpunit/includes/Services/ServiceContainerTest.php
index
f22e123
..
617e39c
100644
(file)
--- a/
tests/phpunit/includes/Services/ServiceContainerTest.php
+++ b/
tests/phpunit/includes/Services/ServiceContainerTest.php
@@
-326,7
+326,8
@@
class ServiceContainerTest extends PHPUnit_Framework_TestCase {
public function testDisableService() {
$services = $this->newServiceContainer( [ 'Foo' ] );
public function testDisableService() {
$services = $this->newServiceContainer( [ 'Foo' ] );
- $destructible = $this->getMock( 'MediaWiki\Services\DestructibleService' );
+ $destructible = $this->getMockBuilder( 'MediaWiki\Services\DestructibleService' )
+ ->getMock();
$destructible->expects( $this->once() )
->method( 'destroy' );
$destructible->expects( $this->once() )
->method( 'destroy' );
@@
-384,7
+385,8
@@
class ServiceContainerTest extends PHPUnit_Framework_TestCase {
public function testDestroy() {
$services = $this->newServiceContainer();
public function testDestroy() {
$services = $this->newServiceContainer();
- $destructible = $this->getMock( 'MediaWiki\Services\DestructibleService' );
+ $destructible = $this->getMockBuilder( 'MediaWiki\Services\DestructibleService' )
+ ->getMock();
$destructible->expects( $this->once() )
->method( 'destroy' );
$destructible->expects( $this->once() )
->method( 'destroy' );