XML responses
DrevOps\BehatSteps\Steps\Web\XmlTrait - Source, Steps
Assert XML responses with element and attribute checks.
public function xmlAssertResponseMatchesDtd(string $dtd): void
Assert that the response validates against a DTD
public function xmlAssertResponseMatchesRelaxNg(string $schema): void
Assert that the response validates against a RelaxNG schema
public function xmlAssertResponseMatchesXsd(string $schema): void
Assert that the response validates against an XSD schema
public function xmlFindMissingChildElement(array $elements, array $names, ?string $namespace = NULL): ?string
Find the first required child element that 1 of the elements lacks
public function xmlGetAtomFeed(): DOMElement
Get the feed element of an Atom response
public function xmlGetContent(): string
Get the response content, or the content a fixture step set in its place
public function xmlGetFirstNode(string $element): DOMNode
Return the first node matching an XPath expression
public function xmlGetRssChannel(): DOMElement
Get the channel element of an RSS 2.0 response
public function xmlParse(string $content): array
Parse XML content without altering the cached document