PHP Класс ImboUnitTest\Http\Response\Formatter\XMLTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
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

Описание методов

assertXPathDoesNotMatch() защищенный Метод

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() защищенный Метод

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() публичный Метод

Data provider for the stats model
public getStats ( ) : array[]
Результат array[]

queryXPath() защищенный Метод

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
Результат DOMNodeList | null

setUp() публичный Метод

Set up the formatter
public setUp ( )

tearDown() публичный Метод

Tear down the formatter
public tearDown ( )

testCanFormatAGroupModel() публичный Метод

testCanFormatAListModel() публичный Метод

testCanFormatAMetadataModel() публичный Метод

testCanFormatAMetadataModelWithNoMetadata() публичный Метод

testCanFormatAStatsModel() публичный Метод

public 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() публичный Метод