Exemplo n.º 1
0
 public function __construct($data, $signature = '')
 {
     $this->raw_data = $data;
     $data = Helper::parseResponseXml($this->raw_data);
     foreach ($data as $key => $value) {
         $this->data[strToLower($key)] = $value;
     }
     $this->signature = $signature;
 }
Exemplo n.º 2
0
 public function testResponseXmlAttributesIsEmptyIfXmlIsMalformed()
 {
     $attributes = Helper::parseResponseXml('<bla bla="qwe" />a');
     $this->assertEquals($attributes, array());
 }