| @@ 27-41 (lines=15) @@ | ||
| 24 | private $currency = 'USD'; |
|
| 25 | private $testMode = true; |
|
| 26 | ||
| 27 | public function setUp() |
|
| 28 | { |
|
| 29 | parent::setUp(); |
|
| 30 | ||
| 31 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 32 | $this->request->initialize([ |
|
| 33 | 'purse' => $this->purse, |
|
| 34 | 'secret' => $this->secret, |
|
| 35 | 'description' => $this->description, |
|
| 36 | 'transactionId' => $this->transactionId, |
|
| 37 | 'amount' => $this->amount, |
|
| 38 | 'currency' => $this->currency, |
|
| 39 | 'testMode' => $this->testMode, |
|
| 40 | ]); |
|
| 41 | } |
|
| 42 | ||
| 43 | public function testGetData() |
|
| 44 | { |
|
| @@ 27-41 (lines=15) @@ | ||
| 24 | private $currency = 'USD'; |
|
| 25 | private $testMode = true; |
|
| 26 | ||
| 27 | public function setUp() |
|
| 28 | { |
|
| 29 | parent::setUp(); |
|
| 30 | ||
| 31 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 32 | $this->request->initialize([ |
|
| 33 | 'purse' => $this->purse, |
|
| 34 | 'secret' => $this->secret, |
|
| 35 | 'description' => $this->description, |
|
| 36 | 'transactionId' => $this->transactionId, |
|
| 37 | 'amount' => $this->amount, |
|
| 38 | 'currency' => $this->currency, |
|
| 39 | 'testMode' => $this->testMode, |
|
| 40 | ]); |
|
| 41 | } |
|
| 42 | ||
| 43 | public function testSuccess() |
|
| 44 | { |
|