PHP Class Sanpi\Behatch\Context\XmlContext

Inheritance: extends BaseContext
Afficher le fichier Open project: behatch/contexts

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
getDom ( )

Method Details

beforeScenario() public méthode

public beforeScenario ( )

printLastXmlResponse() public méthode

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

theAtomFeedShouldBeValid() public méthode

theResponseShouldBeInXml() public méthode

Checks that the response is correct XML

theResponseShouldNotBeInXml() public méthode

Checks that the response is not correct XML

theRss2FeedShouldBeValid() public méthode

theXmlAttributeShouldBeEqualTo() public méthode

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

theXmlAttributeShouldExist() public méthode

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

theXmlAttributeShouldNotBeEqualTo() public méthode

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

theXmlAttributeShouldNotExist() public méthode

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

theXmlElementShouldBeEqualTo() public méthode

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

theXmlElementShouldContain() public méthode

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

theXmlElementShouldExist() public méthode

Checks that the specified XML element exists
public theXmlElementShouldExist ( string $element ) : DomNodeList
$element string
Résultat DomNodeList

theXmlElementShouldHaveNChildElements() public méthode

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

theXmlElementShouldNotBeEqualTo() public méthode

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

theXmlElementShouldNotContain() public méthode

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

theXmlElementShouldNotExist() public méthode

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

theXmlFeedShouldBeValidAccordingToItsDtd() public méthode

theXmlFeedShouldBeValidAccordingToTheRelaxNgSchema() public méthode

theXmlFeedShouldBeValidAccordingToTheXsd() public méthode

theXmlFeedShouldBeValidAccordingToThisRelaxNgSchema() public méthode

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

theXmlFeedShouldBeValidAccordingToThisXsd() public méthode

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

theXmlShouldNotUseTheNamespace() public méthode

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

theXmlShouldUseTheNamespace() public méthode

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