public function testHostedOrderForm() { $expectedForm = file_get_contents(realpath(dirname(__FILE__)) . '/../../resources/hostedOrderForm.txt'); OpenPayU_Configuration::setHashAlgorithm('MD5'); $form = OpenPayU_Order::hostedOrderForm($this->_order); $this->assertEquals($expectedForm, $form); }
/** * @expectedException OpenPayU_Exception_Configuration * @expectedExceptionMessage Hash algorithm "hash"" is not available */ public function testSetInvalidHashAlgorithm() { OpenPayU_Configuration::setHashAlgorithm('hash'); }