| @@ 32-48 (lines=17) @@ | ||
| 29 | private $currency = 'USD'; | |
| 30 | private $testMode = true; | |
| 31 | ||
| 32 | public function setUp() | |
| 33 |     { | |
| 34 | parent::setUp(); | |
| 35 | ||
| 36 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); | |
| 37 | $this->request->initialize([ | |
| 38 | 'purse' => $this->purse, | |
| 39 | 'secret' => $this->secret, | |
| 40 | 'returnUrl' => $this->returnUrl, | |
| 41 | 'cancelUrl' => $this->cancelUrl, | |
| 42 | 'notifyUrl' => $this->notifyUrl, | |
| 43 | 'description' => $this->description, | |
| 44 | 'amount' => $this->amount, | |
| 45 | 'currency' => $this->currency, | |
| 46 | 'testMode' => $this->testMode, | |
| 47 | ]); | |
| 48 | } | |
| 49 | ||
| 50 | public function testGetData() | |
| 51 |     { | |
| @@ 32-49 (lines=18) @@ | ||
| 29 | private $currency = 'USD'; | |
| 30 | private $testMode = true; | |
| 31 | ||
| 32 | public function setUp() | |
| 33 |     { | |
| 34 | parent::setUp(); | |
| 35 | ||
| 36 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); | |
| 37 | $this->request->initialize([ | |
| 38 | 'purse' => $this->purse, | |
| 39 | 'secret' => $this->secret, | |
| 40 | 'returnUrl' => $this->returnUrl, | |
| 41 | 'cancelUrl' => $this->cancelUrl, | |
| 42 | 'notifyUrl' => $this->notifyUrl, | |
| 43 | 'description' => $this->description, | |
| 44 | 'transactionId' => $this->transactionId, | |
| 45 | 'amount' => $this->amount, | |
| 46 | 'currency' => $this->currency, | |
| 47 | 'testMode' => $this->testMode, | |
| 48 | ]); | |
| 49 | } | |
| 50 | ||
| 51 | public function testSuccess() | |
| 52 |     { | |