Sonata\Tests\PaymentBundle\Entity\BaseTransactionTest::testParametersEncoding PHP Method

testParametersEncoding() public method

    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());
    }