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 "Title: Refactor JS/CSS page handling to be more sane"
[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
ba8af93
..
d64ba3d
100644
(file)
--- a/
tests/phpunit/includes/libs/MemoizedCallableTest.php
+++ b/
tests/phpunit/includes/libs/MemoizedCallableTest.php
@@
-24,7
+24,7
@@
class ArrayBackedMemoizedCallable extends MemoizedCallable {
* PHP Unit tests for MemoizedCallable class.
* @covers MemoizedCallable
*/
* PHP Unit tests for MemoizedCallable class.
* @covers MemoizedCallable
*/
-class MemoizedCallableTest extends PHPUnit
_Framework_
TestCase {
+class MemoizedCallableTest extends PHPUnit
\Framework\
TestCase {
use MediaWikiCoversValidator;
use MediaWikiCoversValidator;
@@
-33,7
+33,7
@@
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->getMockBuilder(
'stdClass'
)
+ $mock = $this->getMockBuilder(
stdClass::class
)
->setMethods( [ 'reverse' ] )->getMock();
$mock->expects( $this->any() )
->method( 'reverse' )
->setMethods( [ 'reverse' ] )->getMock();
$mock->expects( $this->any() )
->method( 'reverse' )
@@
-50,7
+50,7
@@
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->getMockBuilder(
'stdClass'
)
+ $observer = $this->getMockBuilder(
stdClass::class
)
->setMethods( [ 'computeSomething' ] )->getMock();
$observer->expects( $this->once() )
->method( 'computeSomething' )
->setMethods( [ 'computeSomething' ] )->getMock();
$observer->expects( $this->once() )
->method( 'computeSomething' )