public function seeSoapResponseContainsStructure($xml)
    {
        $xml = SoapUtils::toXml($xml);
        $this->debugSection("Structure", $xml->saveXML());
        $this->assertTrue((bool)$this->getXmlStructure()->matchXmlStructure($xml), "this structure is in response");
    }
public function seeSoapResponseContainsStructure($xml)
    {
        $xml = SoapUtils::toXml($xml);
        $this->debugSection("Structure", $xml->saveXML());
        $this->assertTrue((bool)$this->getXmlStructure()->matchXmlStructure($xml), "this structure is in response");
    }
public function seeSoapResponseContainsStructure ( $ xml ) { $ xml = SoapUtils :: toXml ( $ xml ) ; $ this -> debugSection ( "Structure" , $ xml -> saveXML ( ) ) ; $ this -> assertTrue ( ( bool ) $ this -> getXmlStructure ( ) -> matchXmlStructure ( $ xml ) , "this structure is in response" ) ; }
Checks XML response contains provided structure.
Response elements will be compared with XML provided.
Only nodeNames are checked to see elements match.

Example:

``` php
<?php

$I->seeSoapResponseContainsStructure("<query><name></name></query>");
?>
```

Use this method to check XML of valid structure is returned.
This method does not use schema for validation.
This method does not require path from root to match the structure.

@param $xml
Checks XML response contains provided structure . Response elements will be compared with XML provided . Only nodeNames are checked to see elements match .