function Braintree_Xml_ParserTest::testTypeCastIntegers in Commerce Braintree 7
File
- braintree_php/
tests/ unit/ Xml_ParserTest.php, line 7
Class
Code
function testTypeCastIntegers() {
$array = Braintree_Xml::buildArrayFromXml('<root><foo type="integer">123</foo></root>');
$this
->assertEquals($array, array(
'root' => array(
'foo' => 123,
),
));
}