/** * 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\Offer(); parent::setUp(); }
/** * Prepares the environment before running a test. */ protected function setUp() { $this->_service = new Request(); $this->_service->setConnectionClass(new Curl(API_TEST_KEY)); $this->_model = new Models\Request\Subscription(); parent::setUp(); }
/** * 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\Webhook(); $this->_email = '*****@*****.**'; $this->_url = 'http://example.com/dummyCallback'; parent::setUp(); }
/** * 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(); }