Ejemplo n.º 1
0
 public function testParametersEncoding()
 {
     $transaction = new Transaction();
     $inParams = array('params' => array('aerẑerüioRazeioj' => iconv('UTF-8', 'ISO-8859-1', 'ôûêîÖüïë'), 'abcdef' => 'ghijkl'));
     $expectedParams = array('params' => array('aerẑerüioRazeioj' => 'ôûêîÖüïë', 'abcdef' => 'ghijkl'));
     $transaction->setParameters($inParams);
     $this->assertEquals($expectedParams, $transaction->getParameters());
 }
Ejemplo n.º 2
0
 public function testParametersEncoding()
 {
     $transaction = new Transaction();
     $inParams = array('params' => array("aerẑerüioRazeioj" => iconv('UTF-8', 'ISO-8859-1', "ôûêîÖüïë"), "abcdef" => "ghijkl"));
     $expectedParams = array('params' => array("aerẑerüioRazeioj" => "ôûêîÖüïë", "abcdef" => "ghijkl"));
     $transaction->setParameters($inParams);
     $this->assertEquals($expectedParams, $transaction->getParameters());
 }