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 "SpecialNewFiles: Swap from/to date serverside"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
MemoizedCallableTest.php
diff --git
a/tests/phpunit/includes/libs/MemoizedCallableTest.php
b/tests/phpunit/includes/libs/MemoizedCallableTest.php
index
881f5e1
..
d99c587
100644
(file)
--- a/
tests/phpunit/includes/libs/MemoizedCallableTest.php
+++ b/
tests/phpunit/includes/libs/MemoizedCallableTest.php
@@
-31,7
+31,8
@@
class MemoizedCallableTest extends PHPUnit_Framework_TestCase {
* way as the original underlying callable.
*/
public function testReturnValuePassedThrough() {
* way as the original underlying callable.
*/
public function testReturnValuePassedThrough() {
- $mock = $this->getMock( 'stdClass', [ 'reverse' ] );
+ $mock = $this->getMockBuilder( 'stdClass' )
+ ->setMethods( [ 'reverse' ] )->getMock();
$mock->expects( $this->any() )
->method( 'reverse' )
->will( $this->returnCallback( 'strrev' ) );
$mock->expects( $this->any() )
->method( 'reverse' )
->will( $this->returnCallback( 'strrev' ) );
@@
-47,7
+48,8
@@
class MemoizedCallableTest extends PHPUnit_Framework_TestCase {
* @requires function apc_store/apcu_store
*/
public function testCallableMemoized() {
* @requires function apc_store/apcu_store
*/
public function testCallableMemoized() {
- $observer = $this->getMock( 'stdClass', [ 'computeSomething' ] );
+ $observer = $this->getMockBuilder( 'stdClass' )
+ ->setMethods( [ 'computeSomething' ] )->getMock();
$observer->expects( $this->once() )
->method( 'computeSomething' )
->will( $this->returnValue( 'ok' ) );
$observer->expects( $this->once() )
->method( 'computeSomething' )
->will( $this->returnValue( 'ok' ) );