You are here

function Braintree_Xml_ParserTest::testParsingNilEqualsTrueAfterArray in Commerce Braintree 7

File

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

Class

Braintree_Xml_ParserTest

Code

function testParsingNilEqualsTrueAfterArray() {
  $xml = <<<XML
        <root>
          <customer>
            <first-name>Dan</first-name>
          </customer>
          <blank nil="true" />
        </root>
XML;
  $array = Braintree_Xml::buildArrayFromXml($xml);
  $this
    ->assertEquals(null, $array['root']['blank']);
}