AbstractXmlManifestTest
extends AbstractManifestTest
in package
AbstractYes
Table of Contents
Constants
- SCHEMA_URL = 'farah://slothsoft@farah/schema/module/'
Methods
- customExecutableBuilderProvider() : iterable<string|int, mixed>
- customInstructionProvider() : iterable<string|int, mixed>
- customParameterFilterProvider() : iterable<string|int, mixed>
- customPathResolverProvider() : iterable<string|int, mixed>
- testClassImplementsExecutableBuilderStrategy() : void
- testClassImplementsInstructionStrategy() : void
- testClassImplementsParameterFilterStrategy() : void
- testClassImplementsPathResolverStrategy() : void
- testHasRootElement() : void
- testManifestExists() : string
- testManifestIsValidAccordingToSchema() : DOMDocument
- testManifestIsValidXml() : DOMDocument
- testRootElementIsAssets() : void
- testSchemaExists() : string
- testSchemaIsValidXml() : DOMDocument
- assertSchema() : void
- failException() : void
- findSchemaLocation() : string|null
- getManifestDirectory() : string
- getManifestDocument() : DOMDocument
- getManifestFile() : string
- getManifestRoot() : LeanElement
- getObjectMethod() : mixed
- getObjectProperty() : mixed
- loadTree() : LeanElement
Constants
SCHEMA_URL
public
mixed
SCHEMA_URL
= 'farah://slothsoft@farah/schema/module/'
Methods
customExecutableBuilderProvider()
public
customExecutableBuilderProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>customInstructionProvider()
public
customInstructionProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>customParameterFilterProvider()
public
customParameterFilterProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>customPathResolverProvider()
public
customPathResolverProvider() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>testClassImplementsExecutableBuilderStrategy()
public
testClassImplementsExecutableBuilderStrategy(string $className) : void
Parameters
- $className : string
Tags
testClassImplementsInstructionStrategy()
public
testClassImplementsInstructionStrategy(string $className) : void
Parameters
- $className : string
Tags
testClassImplementsParameterFilterStrategy()
public
testClassImplementsParameterFilterStrategy(string $className) : void
Parameters
- $className : string
Tags
testClassImplementsPathResolverStrategy()
public
testClassImplementsPathResolverStrategy(string $className) : void
Parameters
- $className : string
Tags
testHasRootElement()
public
testHasRootElement() : void
testManifestExists()
public
testManifestExists() : string
Return values
stringtestManifestIsValidAccordingToSchema()
public
testManifestIsValidAccordingToSchema(mixed $manifestDocument, mixed $schemaDocument) : DOMDocument
Parameters
- $manifestDocument : mixed
- $schemaDocument : mixed
Tags
Return values
DOMDocumenttestManifestIsValidXml()
public
testManifestIsValidXml(string $path) : DOMDocument
Parameters
- $path : string
Tags
Return values
DOMDocumenttestRootElementIsAssets()
public
testRootElementIsAssets() : void
Tags
testSchemaExists()
public
testSchemaExists(mixed $manifestDocument) : string
Parameters
- $manifestDocument : mixed
Tags
Return values
stringtestSchemaIsValidXml()
public
testSchemaIsValidXml(string $path) : DOMDocument
Parameters
- $path : string
Tags
Return values
DOMDocumentassertSchema()
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|nullgetManifestDirectory()
protected
abstract static getManifestDirectory() : string
Return values
stringgetManifestDocument()
protected
getManifestDocument() : DOMDocument
Return values
DOMDocumentgetManifestFile()
protected
static getManifestFile() : string
Return values
stringgetManifestRoot()
protected
getManifestRoot() : LeanElement
Return values
LeanElementgetObjectMethod()
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
loadTree()
protected
static loadTree() : LeanElement