Inheritance: extends Sonata\PaymentBundle\Entity\BaseTransaction
コード例 #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());
 }
コード例 #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());
 }