X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FSamplingStatsdClientTest.php;h=3439df8b0e63e067a1a639f1e02a9be49de29756;hb=823a96e2ceab3a552075bde676c03c2cb163ce8f;hp=9a489303a7a3d9db4b94cd441d927e2b5e845042;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/SamplingStatsdClientTest.php b/tests/phpunit/includes/libs/SamplingStatsdClientTest.php index 9a489303a7..3439df8b0e 100644 --- a/tests/phpunit/includes/libs/SamplingStatsdClientTest.php +++ b/tests/phpunit/includes/libs/SamplingStatsdClientTest.php @@ -1,13 +1,17 @@ getMock( 'Liuggio\StatsdClient\Sender\SenderInterface' ); + $sender = $this->getMockBuilder( SenderInterface::class )->getMock(); $sender->expects( $this->any() )->method( 'open' )->will( $this->returnValue( true ) ); if ( $expectWrite ) { $sender->expects( $this->once() )->method( 'write' ) @@ -50,7 +54,7 @@ class SamplingStatsdClientTest extends PHPUnit_Framework_TestCase { $nonMatching->setKey( 'oof.bar' ); $nonMatching->setValue( 1 ); - $sender = $this->getMock( 'Liuggio\StatsdClient\Sender\SenderInterface' ); + $sender = $this->getMockBuilder( SenderInterface::class )->getMock(); $sender->expects( $this->any() )->method( 'open' )->will( $this->returnValue( true ) ); $sender->expects( $this->once() )->method( 'write' )->with( $this->anything(), $this->equalTo( $nonMatching ) );