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
Make BatchRowUpdateTest compatible with PHPUnit 6
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
site
/
SiteExporterTest.php
diff --git
a/tests/phpunit/includes/site/SiteExporterTest.php
b/tests/phpunit/includes/site/SiteExporterTest.php
index
09cdea7
..
db900da
100644
(file)
--- a/
tests/phpunit/includes/site/SiteExporterTest.php
+++ b/
tests/phpunit/includes/site/SiteExporterTest.php
@@
-29,12
+29,13
@@
*
* @author Daniel Kinzler
*/
*
* @author Daniel Kinzler
*/
-class SiteExporterTest extends PHPUnit
_Framework_
TestCase {
+class SiteExporterTest extends PHPUnit
\Framework\
TestCase {
use MediaWikiCoversValidator;
use MediaWikiCoversValidator;
+ use PHPUnit4And6Compat;
public function testConstructor_InvalidArgument() {
public function testConstructor_InvalidArgument() {
- $this->setExpectedException(
'InvalidArgumentException'
);
+ $this->setExpectedException(
InvalidArgumentException::class
);
new SiteExporter( 'Foo' );
}
new SiteExporter( 'Foo' );
}
@@
-77,7
+78,7
@@
class SiteExporterTest extends PHPUnit_Framework_TestCase {
}
private function newSiteStore( SiteList $sites ) {
}
private function newSiteStore( SiteList $sites ) {
- $store = $this->getMockBuilder(
'SiteStore'
)->getMock();
+ $store = $this->getMockBuilder(
SiteStore::class
)->getMock();
$store->expects( $this->once() )
->method( 'saveSites' )
$store->expects( $this->once() )
->method( 'saveSites' )