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 "Fix SamplingStatsdClient for PHP 7.1+"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
TitleTest.php
diff --git
a/tests/phpunit/includes/TitleTest.php
b/tests/phpunit/includes/TitleTest.php
index
75e0c3e
..
c81a078
100644
(file)
--- a/
tests/phpunit/includes/TitleTest.php
+++ b/
tests/phpunit/includes/TitleTest.php
@@
-163,7
+163,7
@@
class TitleTest extends MediaWikiTestCase {
*/
public function testSecureAndSplitValid( $text ) {
$this->secureAndSplitGlobals();
*/
public function testSecureAndSplitValid( $text ) {
$this->secureAndSplitGlobals();
- $this->assertInstanceOf(
'Title'
, Title::newFromText( $text ), "Valid: $text" );
+ $this->assertInstanceOf(
Title::class
, Title::newFromText( $text ), "Valid: $text" );
}
/**
}
/**
@@
-434,7
+434,7
@@
class TitleTest extends MediaWikiTestCase {
$this->setContentLang( $contLang );
$title = Title::newFromText( $titleText );
$this->setContentLang( $contLang );
$title = Title::newFromText( $titleText );
- $this->assertInstanceOf(
'Title'
, $title,
+ $this->assertInstanceOf(
Title::class
, $title,
"Test must be passed a valid title text, you gave '$titleText'"
);
$this->assertEquals( $expected,
"Test must be passed a valid title text, you gave '$titleText'"
);
$this->assertEquals( $expected,
@@
-552,6
+552,7
@@
class TitleTest extends MediaWikiTestCase {
}
/**
}
/**
+ * @covers Title::newFromTitleValue
* @dataProvider provideNewFromTitleValue
*/
public function testNewFromTitleValue( TitleValue $value ) {
* @dataProvider provideNewFromTitleValue
*/
public function testNewFromTitleValue( TitleValue $value ) {
@@
-572,6
+573,7
@@
class TitleTest extends MediaWikiTestCase {
}
/**
}
/**
+ * @covers Title::getTitleValue
* @dataProvider provideGetTitleValue
*/
public function testGetTitleValue( $text ) {
* @dataProvider provideGetTitleValue
*/
public function testGetTitleValue( $text ) {
@@
-603,6
+605,7
@@
class TitleTest extends MediaWikiTestCase {
}
/**
}
/**
+ * @covers Title::getFragment
* @dataProvider provideGetFragment
*
* @param string $full
* @dataProvider provideGetFragment
*
* @param string $full
@@
-913,6
+916,7
@@
class TitleTest extends MediaWikiTestCase {
}
/**
}
/**
+ * @covers Title::getFragmentForURL
* @dataProvider provideGetFragmentForURL
*
* @param string $titleStr
* @dataProvider provideGetFragmentForURL
*
* @param string $titleStr