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
Update declaration of UploadFromUrlTest::doApiRequest
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
exception
/
MWExceptionTest.php
diff --git
a/tests/phpunit/includes/exception/MWExceptionTest.php
b/tests/phpunit/includes/exception/MWExceptionTest.php
index
614a1c9
..
b160554
100644
(file)
--- a/
tests/phpunit/includes/exception/MWExceptionTest.php
+++ b/
tests/phpunit/includes/exception/MWExceptionTest.php
@@
-10,6
+10,7
@@
class MWExceptionTest extends MediaWikiTestCase {
/**
* @expectedException MWException
/**
* @expectedException MWException
+ * @covers MWException
*/
public function testMwexceptionThrowing() {
throw new MWException();
*/
public function testMwexceptionThrowing() {
throw new MWException();
@@
-43,7
+44,7
@@
class MWExceptionTest extends MediaWikiTestCase {
}
private function getMockLanguage() {
}
private function getMockLanguage() {
- return $this->getMockBuilder(
'Language'
)
+ return $this->getMockBuilder(
Language::class
)
->disableOriginalConstructor()
->getMock();
}
->disableOriginalConstructor()
->getMock();
}
@@
-110,8
+111,8
@@
class MWExceptionTest extends MediaWikiTestCase {
public static function provideExceptionClasses() {
return [
public static function provideExceptionClasses() {
return [
- [
'Exception'
],
- [
'MWException'
],
+ [
Exception::class
],
+ [
MWException::class
],
];
}
];
}
@@
-146,7
+147,7
@@
class MWExceptionTest extends MediaWikiTestCase {
*/
public static function provideJsonSerializedKeys() {
$testCases = [];
*/
public static function provideJsonSerializedKeys() {
$testCases = [];
- foreach ( [
'Exception', 'MWException'
] as $exClass ) {
+ foreach ( [
Exception::class, MWException::class
] as $exClass ) {
$exTests = [
[ 'string', $exClass, 'id' ],
[ 'string', $exClass, 'file' ],
$exTests = [
[ 'string', $exClass, 'id' ],
[ 'string', $exClass, 'file' ],