Documentation

AbstractSitemapTest extends AbstractTestCase
in package

AbstractYes

Table of Contents

Constants

SCHEMA_URL  = 'farah://slothsoft@farah/schema/sitemap/'

Methods

includeProvider()  : array<string|int, mixed>
pageNodeProvider()  : array<string|int, mixed>
testHasRootElement()  : DOMElement
testIncludeExists()  : void
testIncludeIsValidAccordingToSchema()  : void
testPageMustHaveEitherRefOrRedirect()  : void
testPageResultExists()  : void
testRootElementIsDomain()  : void
testSchemaExists()  : string
testSchemaIsValidXml()  : DOMDocument
testSitesIsValidAccordingToSchema()  : DOMDocument
assertSchema()  : void
failException()  : void
findSchemaLocation()  : string|null
getDomain()  : Domain
getDomainDocument()  : DOMDocument
getObjectMethod()  : mixed
getObjectProperty()  : mixed
getSitesAsset()  : AssetInterface
getSitesDocument()  : DOMDocument
getSitesIncludes()  : array<string|int, mixed>
getSitesIncludesCrawl()  : void
getSitesResult()  : ResultInterface
getSitesRoot()  : DOMElement
loadSitesAsset()  : AssetInterface

Constants

Methods

includeProvider()

public includeProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

pageNodeProvider()

public pageNodeProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

testHasRootElement()

public testHasRootElement() : DOMElement
Return values
DOMElement

testIncludeExists()

public testIncludeExists(mixed $url) : void
Parameters
$url : mixed
Tags
dataProvider

includeProvider

testIncludeIsValidAccordingToSchema()

public testIncludeIsValidAccordingToSchema(mixed $url) : void
Parameters
$url : mixed
Tags
depends

testIncludeExists

dataProvider

includeProvider

testPageMustHaveEitherRefOrRedirect()

public testPageMustHaveEitherRefOrRedirect(mixed $node) : void
Parameters
$node : mixed
Tags
depends

testIncludeExists

dataProvider

pageNodeProvider

testPageResultExists()

public testPageResultExists(mixed $node) : void
Parameters
$node : mixed
Tags
depends

testPageMustHaveEitherRefOrRedirect

dataProvider

pageNodeProvider

testRootElementIsDomain()

public testRootElementIsDomain(mixed $rootElement) : void
Parameters
$rootElement : mixed
Tags
depends

testHasRootElement

testSchemaExists()

public testSchemaExists(mixed $rootElement) : string
Parameters
$rootElement : mixed
Tags
depends

testHasRootElement

Return values
string

testSchemaIsValidXml()

public testSchemaIsValidXml(string $path) : DOMDocument
Parameters
$path : string
Tags
depends

testSchemaExists

Return values
DOMDocument

testSitesIsValidAccordingToSchema()

public testSitesIsValidAccordingToSchema(mixed $schemaDocument) : DOMDocument
Parameters
$schemaDocument : mixed
Tags
depends

testSchemaIsValidXml

Return values
DOMDocument

assertSchema()

protected assertSchema(DOMDocument $document, string $schema) : void
Parameters
$document : DOMDocument
$schema : string

failException()

protected failException(Throwable $e) : void
Parameters
$e : Throwable

findSchemaLocation()

protected findSchemaLocation(DOMDocument $document) : string|null
Parameters
$document : DOMDocument
Return values
string|null

getDomainDocument()

protected getDomainDocument() : DOMDocument
Return values
DOMDocument

getObjectMethod()

protected getObjectMethod(object $target, string $name, mixed ...$args) : mixed
Parameters
$target : object
$name : string
$args : mixed

getObjectProperty()

protected getObjectProperty(object $target, string $name) : mixed
Parameters
$target : object
$name : string

getSitesDocument()

protected getSitesDocument() : DOMDocument
Return values
DOMDocument

getSitesIncludes()

protected getSitesIncludes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSitesIncludesCrawl()

protected getSitesIncludesCrawl(array<string|int, mixed> &$ret, FarahUrl $parentUrl, DOMDocument $document) : void
Parameters
$ret : array<string|int, mixed>
$parentUrl : FarahUrl
$document : DOMDocument

        
On this page

Search results