MediaWiki REL1_33
SiteImporterTest Class Reference
Inheritance diagram for SiteImporterTest:
Collaboration diagram for SiteImporterTest:

Public Member Functions

 assertSitesEqual ( $expected, $actual, $message='')
 
 provideImportFromXML ()
 
 testImportFromFile ()
 
 testImportFromXML ( $xml, array $expectedSites, $errorCount=0)
 provideImportFromXML
 
 testImportFromXML_malformed ()
 

Private Member Functions

 getSerializedSiteList ( $sites)
 
 newSiteImporter (array $expectedSites, $errorCount)
 

Detailed Description

Definition at line 30 of file SiteImporterTest.php.

Member Function Documentation

◆ assertSitesEqual()

SiteImporterTest::assertSitesEqual ( $expected,
$actual,
$message = '' )

Definition at line 58 of file SiteImporterTest.php.

References and(), and getSerializedSiteList().

Referenced by newSiteImporter().

◆ getSerializedSiteList()

SiteImporterTest::getSerializedSiteList ( $sites)
private
Parameters
Site[]$sites
Returns
array[]

Definition at line 188 of file SiteImporterTest.php.

References $data, $serialized, and unserialize().

Referenced by assertSitesEqual().

◆ newSiteImporter()

SiteImporterTest::newSiteImporter ( array $expectedSites,
$errorCount )
private

Definition at line 35 of file SiteImporterTest.php.

References and(), any, and assertSitesEqual().

Referenced by testImportFromFile(), and testImportFromXML().

◆ provideImportFromXML()

SiteImporterTest::provideImportFromXML ( )

◆ testImportFromFile()

SiteImporterTest::testImportFromFile ( )

◆ testImportFromXML()

SiteImporterTest::testImportFromXML ( $xml,
array $expectedSites,
$errorCount = 0 )

provideImportFromXML

Definition at line 144 of file SiteImporterTest.php.

References newSiteImporter().

◆ testImportFromXML_malformed()

SiteImporterTest::testImportFromXML_malformed ( )

Definition at line 149 of file SiteImporterTest.php.

References and().


The documentation for this class was generated from the following file: