PHP Class ImboUnitTest\Http\Response\Formatter\XMLTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: imbo/imbo

Méthodes publiques

Méthode Description
getStats ( ) : array[] Data provider for the stats model
setUp ( ) Set up the formatter
tearDown ( ) Tear down the formatter
testCanFormatAGroupModel ( )
testCanFormatAListModel ( )
testCanFormatAMetadataModel ( )
testCanFormatAMetadataModelWithNoMetadata ( )
testCanFormatAStatsModel ( $images, $users, $bytes, $customStats, $pattern )
testCanFormatAStatusModel ( )
testCanFormatAUserModel ( )
testCanFormatAccessRulesModel ( )
testCanFormatAnAccessRuleModelWithGroup ( )
testCanFormatAnAccessRuleModelWithResource ( )
testCanFormatAnArrayModel ( )
testCanFormatAnArrayModelWithNestedArrays ( )
testCanFormatAnEmptyArrayModel ( )
testCanFormatAnEmptyListModel ( )
testCanFormatAnErrorModel ( )
testCanFormatAnErrorModelWhenNoImageIdentifierExists ( )
testCanFormatAnImagesModel ( )
testCanFormatAnImagesModelWithNoImages ( )
testCanFormatAnImagesModelWithNoMetadata ( )
testCanFormatAnImagesModelWithNoMetadataSet ( )
testCanFormatAnImagesModelWithSomefields ( )
testCanFormatArrayModelWithLists ( )
testCanFormatArrayModelWithNestedLists ( )
testCanFormatGroupsModel ( )
testReturnsCurrectContentType ( )

Méthodes protégées

Méthode Description
assertXPathDoesNotMatch ( string $query, string $xml, string $message = '' ) Assert that an xpath query have no matches for the given XML tree
assertXPathMatches ( string $query, string $xml, string $message = '' ) Assert that an xpath query have matches for the given XML tree
queryXPath ( string $query, string $xml ) : DOMNodeList | null Run an XPath query on the given DOM document, returning matched elements

Method Details

assertXPathDoesNotMatch() protected méthode

Assert that an xpath query have no matches for the given XML tree
protected assertXPathDoesNotMatch ( string $query, string $xml, string $message = '' )
$query string XPath query
$xml string XML document
$message string

assertXPathMatches() protected méthode

Assert that an xpath query have matches for the given XML tree
protected assertXPathMatches ( string $query, string $xml, string $message = '' )
$query string XPath query
$xml string XML document
$message string

getStats() public méthode

Data provider for the stats model
public getStats ( ) : array[]
Résultat array[]

queryXPath() protected méthode

Run an XPath query on the given DOM document, returning matched elements
protected queryXPath ( string $query, string $xml ) : DOMNodeList | null
$query string XPath query
$xml string XML document
Résultat DOMNodeList | null

setUp() public méthode

Set up the formatter
public setUp ( )

tearDown() public méthode

Tear down the formatter
public tearDown ( )

testCanFormatAGroupModel() public méthode

testCanFormatAListModel() public méthode

testCanFormatAMetadataModel() public méthode

testCanFormatAMetadataModelWithNoMetadata() public méthode

testCanFormatAStatsModel() public méthode

public testCanFormatAStatsModel ( $images, $users, $bytes, $customStats, $pattern )

testCanFormatAStatusModel() public méthode

testCanFormatAUserModel() public méthode

testCanFormatAccessRulesModel() public méthode

testCanFormatAnAccessRuleModelWithGroup() public méthode

testCanFormatAnAccessRuleModelWithResource() public méthode

testCanFormatAnArrayModel() public méthode

testCanFormatAnArrayModelWithNestedArrays() public méthode

testCanFormatAnEmptyArrayModel() public méthode

testCanFormatAnEmptyListModel() public méthode

testCanFormatAnErrorModel() public méthode

testCanFormatAnErrorModelWhenNoImageIdentifierExists() public méthode

testCanFormatAnImagesModel() public méthode

testCanFormatAnImagesModelWithNoImages() public méthode

testCanFormatAnImagesModelWithNoMetadata() public méthode

testCanFormatAnImagesModelWithNoMetadataSet() public méthode

testCanFormatAnImagesModelWithSomefields() public méthode

testCanFormatArrayModelWithLists() public méthode

testCanFormatArrayModelWithNestedLists() public méthode

testCanFormatGroupsModel() public méthode

testReturnsCurrectContentType() public méthode