PHP 클래스 ImboUnitTest\Http\Response\Formatter\XMLTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: imbo/imbo

공개 메소드들

메소드 설명
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() 공개 메소드