PHP 클래스 Sanpi\Behatch\Context\XmlContext

상속: extends BaseContext
파일 보기 프로젝트 열기: behatch/contexts

공개 메소드들

메소드 설명
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 )