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 "Make RouterTest extend MediawikiUnitTestCase and not integration"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
MWMessagePackTest.php
diff --git
a/tests/phpunit/includes/libs/MWMessagePackTest.php
b/tests/phpunit/includes/libs/MWMessagePackTest.php
index
57c9831
..
e9bffe1
100644
(file)
--- a/
tests/phpunit/includes/libs/MWMessagePackTest.php
+++ b/
tests/phpunit/includes/libs/MWMessagePackTest.php
@@
-3,9
+3,7
@@
* PHP Unit tests for MWMessagePack
* @covers MWMessagePack
*/
* PHP Unit tests for MWMessagePack
* @covers MWMessagePack
*/
-class MWMessagePackTest extends PHPUnit_Framework_TestCase {
-
- use MediaWikiCoversValidator;
+class MWMessagePackTest extends MediaWikiTestCase {
/**
* Provides test cases for MWMessagePackTest::testMessagePack
/**
* Provides test cases for MWMessagePackTest::testMessagePack
@@
-71,6
+69,7
@@
class MWMessagePackTest extends PHPUnit_Framework_TestCase {
* @dataProvider providePacks
*/
public function testPack( $type, $value, $expected ) {
* @dataProvider providePacks
*/
public function testPack( $type, $value, $expected ) {
+ $this->hideDeprecated( MWMessagePack::class . '::pack' );
$actual = bin2hex( MWMessagePack::pack( $value ) );
$this->assertEquals( $expected, $actual, $type );
}
$actual = bin2hex( MWMessagePack::pack( $value ) );
$this->assertEquals( $expected, $actual, $type );
}