You are here

function Braintree_Xml_ParserTest::testDashesUnderscores in Commerce Braintree 7

File

braintree_php/tests/unit/Xml_ParserTest.php, line 14

Class

Braintree_Xml_ParserTest

Code

function testDashesUnderscores() {
  $xml = <<<XML
        <root>
          <dash-es />
          <under_scores />
        </root>
XML;
  $array = Braintree_Xml::buildArrayFromXml($xml);
  $this
    ->assertEquals(array(
    'root' => array(
      'dashEs' => '',
      'underScores' => '',
    ),
  ), $array);
}