function Braintree_Xml_ParserTest::testIncludesTheEncodingRoundtrip in Commerce Braintree 7
File
- braintree_php/
tests/ unit/ Xml_ParserTest.php, line 502
Class
Code
function testIncludesTheEncodingRoundtrip() {
$array = array(
'root' => array(
'root' => 'bar',
),
);
$xml = Braintree_Xml::buildXmlFromArray($array);
$this
->assertRegExp('<\\?xml version=\\"1.0\\" encoding=\\"UTF-8\\"\\?>', $xml);
}