You are here

function Braintree_Xml_ParserTest::testArrayRoundtrip in Commerce Braintree 7

File

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

Class

Braintree_Xml_ParserTest

Code

function testArrayRoundtrip() {
  $array = array(
    'root' => array(
      'items' => array(
        array(
          'name' => 'first',
        ),
        array(
          'name' => 'second',
        ),
      ),
    ),
  );
  $array2 = $this
    ->xmlAndBack($array);
  $this
    ->assertEquals($array, $array2);
}