MediaWiki  1.28.1
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 More...
 
 testImportFromXML_malformed ()
 

Private Member Functions

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

Detailed Description

Definition at line 32 of file SiteImporterTest.php.

Member Function Documentation

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

Definition at line 57 of file SiteImporterTest.php.

References getSerializedSiteList().

Referenced by newSiteImporter().

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

Definition at line 187 of file SiteImporterTest.php.

References $serialized, as, and unserialize().

Referenced by assertSitesEqual().

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

Definition at line 34 of file SiteImporterTest.php.

References assertSitesEqual(), and use.

Referenced by testImportFromFile(), and testImportFromXML().

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

provideImportFromXML

Definition at line 143 of file SiteImporterTest.php.

References newSiteImporter().

SiteImporterTest::testImportFromXML_malformed ( )

Definition at line 148 of file SiteImporterTest.php.


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