/**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $this->_service = new Request();
     $this->_service->setConnectionClass(new Curl(API_TEST_KEY, API_HOST, array(CURLOPT_SSL_VERIFYPEER => SSL_VERIFY_PEER)));
     $this->_model = new Models\Request\Checksum();
     $this->_model->setChecksumType('postfinance_card');
     $this->_model->setAmount('200');
     $this->_model->setCurrency('CHF');
     $this->_model->setDescription('dummy description');
     parent::setUp();
 }
Beispiel #2
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $this->_service = new Request();
     $this->_service->setConnectionClass(new Curl(API_TEST_KEY, API_HOST, array(CURLOPT_SSL_VERIFYPEER => SSL_VERIFY_PEER)));
     $this->_model = new Checksum();
     $this->_model->setChecksumType(Checksum::TYPE_PAYPAL);
     $this->_model->setAmount('200');
     $this->_model->setCurrency('EUR');
     $this->_model->setDescription('Dummy description');
     parent::setUp();
 }
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $this->_model = new Checksum();
     $this->_model->setChecksumType(Checksum::TYPE_PAYPAL);
     $this->_model->setChecksumAction(Checksum::ACTION_TRANSACTION);
     $this->_model->setAmount('200');
     $this->_model->setCurrency('EUR');
     $this->_model->setDescription('Dummy description');
     $this->_model->setReturnUrl('http://dummy.url');
     $this->_model->setCancelUrl('http://dummy.url');
     parent::setUp();
 }