public function XmlHelperTestCase::assertParseElements in Helper 7        
                          
                  
                        
1 call to XmlHelperTestCase::assertParseElements()
  - XmlHelperTestCase::testXmlParsing in tests/XmlHelperTestCase.test
File
 
   - tests/XmlHelperTestCase.test, line 16
Class
  
  - XmlHelperTestCase 
Code
public function assertParseElements($xml, $expected, array $options = array()) {
  $array = XmlHelper::parseElements($xml, $options);
  $this
    ->assertIdentical($array, $expected, format_string('Calling XmlHelper::parseElements(@input)<br/>Returned: <pre>@output</pre><br/>Expected: <pre>@expected</pre>', array(
    '@input' => $xml,
    '@output' => print_r($array, TRUE),
    '@expected' => print_r($expected, TRUE),
  )));
  $this
    ->assertFormatXml($array, $xml);
}