X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fsite%2FSiteExporterTest.php;h=cb4b6976f430414a2267426d29c8165e2354d6d1;hb=0124c6ce75b23da28d776edf842efb2af53336bd;hp=a3ef4bebcbd7c5effba8ed067b47df8350859436;hpb=5f9671b66e542ce835e1ef7876cadf4c2aedb919;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/site/SiteExporterTest.php b/tests/phpunit/includes/site/SiteExporterTest.php index a3ef4bebcb..cb4b6976f4 100644 --- a/tests/phpunit/includes/site/SiteExporterTest.php +++ b/tests/phpunit/includes/site/SiteExporterTest.php @@ -27,7 +27,6 @@ * * @covers SiteExporter * - * @licence GNU GPL v2+ * @author Daniel Kinzler */ class SiteExporterTest extends PHPUnit_Framework_TestCase { @@ -51,10 +50,10 @@ class SiteExporterTest extends PHPUnit_Framework_TestCase { $tmp = tmpfile(); $exporter = new SiteExporter( $tmp ); - $exporter->exportSites( array( $foo, $acme ) ); + $exporter->exportSites( [ $foo, $acme ] ); fseek( $tmp, 0 ); - $xml = fread( $tmp, 16*1024 ); + $xml = fread( $tmp, 16 * 1024 ); $this->assertContains( 'assertContains( '', $xml ); @@ -113,15 +112,15 @@ class SiteExporterTest extends PHPUnit_Framework_TestCase { $dewiki->setPath( MediaWikiSite::PATH_PAGE, 'http://de.wikipedia.org/wiki/' ); $dewiki->setSource( 'meta.wikimedia.org' ); - return array( - 'empty' => array( + return [ + 'empty' => [ new SiteList() - ), + ], - 'some' => array( - new SiteList( array( $foo, $acme, $dewiki ) ), - ), - ); + 'some' => [ + new SiteList( [ $foo, $acme, $dewiki ] ), + ], + ]; } /** @@ -134,7 +133,7 @@ class SiteExporterTest extends PHPUnit_Framework_TestCase { $exporter->exportSites( $sites ); fseek( $tmp, 0 ); - $xml = fread( $tmp, 16*1024 ); + $xml = fread( $tmp, 16 * 1024 ); $actualSites = new SiteList(); $store = $this->newSiteStore( $actualSites );