You are here

function Braintree_Xml_ParserTest::testIncludesTheEncodingRoundtrip in Commerce Braintree 7

File

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

Class

Braintree_Xml_ParserTest

Code

function testIncludesTheEncodingRoundtrip() {
  $array = array(
    'root' => array(
      'root' => 'bar',
    ),
  );
  $xml = Braintree_Xml::buildXmlFromArray($array);
  $this
    ->assertRegExp('<\\?xml version=\\"1.0\\" encoding=\\"UTF-8\\"\\?>', $xml);
}