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 "rdbms: avoid LoadBalancer::getConnection waste when using $groups"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
title
/
TitleValueTest.php
diff --git
a/tests/phpunit/includes/title/TitleValueTest.php
b/tests/phpunit/includes/title/TitleValueTest.php
index
f833554
..
bbeb068
100644
(file)
--- a/
tests/phpunit/includes/title/TitleValueTest.php
+++ b/
tests/phpunit/includes/title/TitleValueTest.php
@@
-28,6
+28,7
@@
class TitleValueTest extends MediaWikiTestCase {
public function goodConstructorProvider() {
return [
public function goodConstructorProvider() {
return [
+ [ NS_MAIN, '', 'fragment', '', true, false ],
[ NS_USER, 'TestThis', 'stuff', '', true, false ],
[ NS_USER, 'TestThis', '', 'baz', false, true ],
];
[ NS_USER, 'TestThis', 'stuff', '', true, false ],
[ NS_USER, 'TestThis', '', 'baz', false, true ],
];
@@
-58,7
+59,7
@@
class TitleValueTest extends MediaWikiTestCase {
[ NS_MAIN, 5, 'fragment', '' ],
[ NS_MAIN, null, 'fragment', '' ],
[ NS_MAIN, 5, 'fragment', '' ],
[ NS_MAIN, null, 'fragment', '' ],
- [ NS_
MAIN
, '', 'fragment', '' ],
+ [ NS_
USER
, '', 'fragment', '' ],
[ NS_MAIN, 'foo bar', '', '' ],
[ NS_MAIN, 'bar_', '', '' ],
[ NS_MAIN, '_foo', '', '' ],
[ NS_MAIN, 'foo bar', '', '' ],
[ NS_MAIN, 'bar_', '', '' ],
[ NS_MAIN, '_foo', '', '' ],
@@
-78,7
+79,7
@@
class TitleValueTest extends MediaWikiTestCase {
* @dataProvider badConstructorProvider
*/
public function testConstructionErrors( $ns, $text, $fragment, $interwiki ) {
* @dataProvider badConstructorProvider
*/
public function testConstructionErrors( $ns, $text, $fragment, $interwiki ) {
- $this->setExpectedException(
'InvalidArgumentException'
);
+ $this->setExpectedException(
InvalidArgumentException::class
);
new TitleValue( $ns, $text, $fragment, $interwiki );
}
new TitleValue( $ns, $text, $fragment, $interwiki );
}