You are here

function Braintree_Xml_ParserTest::testBooleanRoundtrip in Commerce Braintree 7

File

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

Class

Braintree_Xml_ParserTest

Code

function testBooleanRoundtrip() {
  $array = array(
    'root' => array(
      'stringTrue' => true,
      'boolTrue' => true,
      'stringFalse' => false,
      'boolFalse' => false,
    ),
  );
  $array2 = $this
    ->xmlAndBack($array);
  $this
    ->assertEquals($array, $array2);
}