X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FArrayUtilsTest.php;h=a91cc950d6bf11733dd62c1ef5890cc081a99bba;hb=4e90d55fdc9d31d93e24cf05687eb7d180806f44;hp=7bdb1ca415a04f78ecc080a29cad056358826003;hpb=8c3738e088f377642c540a0ccddb01b16ba7116b;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/ArrayUtilsTest.php b/tests/phpunit/includes/libs/ArrayUtilsTest.php index 7bdb1ca415..a91cc950d6 100644 --- a/tests/phpunit/includes/libs/ArrayUtilsTest.php +++ b/tests/phpunit/includes/libs/ArrayUtilsTest.php @@ -5,7 +5,7 @@ * @group Database */ -class ArrayUtilsTest extends MediaWikiTestCase { +class ArrayUtilsTest extends PHPUnit_Framework_TestCase { private $search; /** @@ -23,11 +23,11 @@ class ArrayUtilsTest extends MediaWikiTestCase { } function provideFindLowerBound() { - $self = $this; - $indexValueCallback = function ( $size ) use ( $self ) { - return function ( $val ) use ( $self, $size ) { - $self->assertTrue( $val >= 0 ); - $self->assertTrue( $val < $size ); + $that = $this; + $indexValueCallback = function ( $size ) use ( $that ) { + return function ( $val ) use ( $that, $size ) { + $that->assertTrue( $val >= 0 ); + $that->assertTrue( $val < $size ); return $val; }; };