PHP Класс Sanpi\Behatch\Context\XmlContext

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

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

Метод Описание
beforeScenario ( )
printLastXmlResponse ( ) Optimistically (ignoring errors) attempt to pretty-print the last XML response
theAtomFeedShouldBeValid ( )
theResponseShouldBeInXml ( ) Checks that the response is correct XML
theResponseShouldNotBeInXml ( ) Checks that the response is not correct XML
theRss2FeedShouldBeValid ( )
theXmlAttributeShouldBeEqualTo ( $attribute, $element, $text ) Checks that the XML attribute on the specified element is equal to the given value
theXmlAttributeShouldExist ( $attribute, $element ) Checks that the XML attribute on the specified element exists
theXmlAttributeShouldNotBeEqualTo ( $attribute, $element, $text ) Checks that the XML attribute on the specified element is not equal to the given value
theXmlAttributeShouldNotExist ( $attribute, $element ) Checks that the XML attribute on the specified element does not exist
theXmlElementShouldBeEqualTo ( $element, $text ) Checks that the specified XML element is equal to the given value
theXmlElementShouldContain ( $element, $text ) Checks that the given XML element contains the given value
theXmlElementShouldExist ( string $element ) : DomNodeList Checks that the specified XML element exists
theXmlElementShouldHaveNChildElements ( $element, $count ) Checks that the given XML element has N child element(s)
theXmlElementShouldNotBeEqualTo ( $element, $text ) Checks that the specified XML element is not equal to the given value
theXmlElementShouldNotContain ( $element, $text ) Checks that the given XML element does not contain the given value
theXmlElementShouldNotExist ( $element ) Checks that the specified XML element does not exist
theXmlFeedShouldBeValidAccordingToItsDtd ( )
theXmlFeedShouldBeValidAccordingToTheRelaxNgSchema ( $filename )
theXmlFeedShouldBeValidAccordingToTheXsd ( $filename )
theXmlFeedShouldBeValidAccordingToThisRelaxNgSchema ( Behat\Gherkin\Node\PyStringNode $ng )
theXmlFeedShouldBeValidAccordingToThisXsd ( Behat\Gherkin\Node\PyStringNode $xsd )
theXmlShouldNotUseTheNamespace ( $namespace ) Checks that the XML does not use the specified namespace
theXmlShouldUseTheNamespace ( $namespace ) Checks that the XML uses the specified namespace

Приватные методы

Метод Описание
getDom ( )

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

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

public beforeScenario ( )

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

Optimistically (ignoring errors) attempt to pretty-print the last XML response

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

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

Checks that the response is correct XML

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

Checks that the response is not correct XML

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

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

Checks that the XML attribute on the specified element is equal to the given value
public theXmlAttributeShouldBeEqualTo ( $attribute, $element, $text )

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

Checks that the XML attribute on the specified element exists
public theXmlAttributeShouldExist ( $attribute, $element )

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

Checks that the XML attribute on the specified element is not equal to the given value
public theXmlAttributeShouldNotBeEqualTo ( $attribute, $element, $text )

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

Checks that the XML attribute on the specified element does not exist
public theXmlAttributeShouldNotExist ( $attribute, $element )

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

Checks that the specified XML element is equal to the given value
public theXmlElementShouldBeEqualTo ( $element, $text )

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

Checks that the given XML element contains the given value
public theXmlElementShouldContain ( $element, $text )

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

Checks that the specified XML element exists
public theXmlElementShouldExist ( string $element ) : DomNodeList
$element string
Результат DomNodeList

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

Checks that the given XML element has N child element(s)
public theXmlElementShouldHaveNChildElements ( $element, $count )

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

Checks that the specified XML element is not equal to the given value
public theXmlElementShouldNotBeEqualTo ( $element, $text )

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

Checks that the given XML element does not contain the given value
public theXmlElementShouldNotContain ( $element, $text )

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

Checks that the specified XML element does not exist
public theXmlElementShouldNotExist ( $element )

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

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

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

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

public theXmlFeedShouldBeValidAccordingToThisRelaxNgSchema ( Behat\Gherkin\Node\PyStringNode $ng )
$ng Behat\Gherkin\Node\PyStringNode

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

public theXmlFeedShouldBeValidAccordingToThisXsd ( Behat\Gherkin\Node\PyStringNode $xsd )
$xsd Behat\Gherkin\Node\PyStringNode

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

Checks that the XML does not use the specified namespace
public theXmlShouldNotUseTheNamespace ( $namespace )

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

Checks that the XML uses the specified namespace
public theXmlShouldUseTheNamespace ( $namespace )