| @@ 31-55 (lines=25) @@ | ||
| 28 | protected $request; |
|
| 29 | ||
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | parent::setUp(); |
|
| 34 | ||
| 35 | $this->stub = new OldPurchaseRequestStub(); |
|
| 36 | $stub = $this->stub; |
|
| 37 | ||
| 38 | $this->request = new OldPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 39 | $this->request->initialize([ |
|
| 40 | 'purse' => $stub->purse, |
|
| 41 | 'signAlgorithm' => $stub->signAlgorithm, |
|
| 42 | 'signKey' => $stub->signKey, |
|
| 43 | 'testKey' => $stub->testKey, |
|
| 44 | 'returnUrl' => $stub->returnUrl, |
|
| 45 | 'returnMethod' => $stub->returnMethod, |
|
| 46 | 'cancelUrl' => $stub->cancelUrl, |
|
| 47 | 'cancelMethod' => $stub->cancelMethod, |
|
| 48 | 'notifyUrl' => $stub->notifyUrl, |
|
| 49 | 'notifyMethod' => $stub->notifyMethod, |
|
| 50 | 'description' => $stub->description, |
|
| 51 | 'transactionId' => $stub->transactionId, |
|
| 52 | 'amount' => $stub->amount, |
|
| 53 | 'currency' => $stub->currency, |
|
| 54 | ]); |
|
| 55 | } |
|
| 56 | ||
| 57 | public function testGetData() |
|
| 58 | { |
|
| @@ 30-54 (lines=25) @@ | ||
| 27 | */ |
|
| 28 | private $stub; |
|
| 29 | ||
| 30 | public function setUp() |
|
| 31 | { |
|
| 32 | parent::setUp(); |
|
| 33 | ||
| 34 | $this->stub = new OldPurchaseResponseStub(); |
|
| 35 | $stub = $this->stub; |
|
| 36 | ||
| 37 | $this->request = new OldPurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 38 | $this->request->initialize([ |
|
| 39 | 'purse' => $stub->purse, |
|
| 40 | 'signAlgorithm' => $stub->signAlgorithm, |
|
| 41 | 'signKey' => $stub->signKey, |
|
| 42 | 'testKey' => $stub->testKey, |
|
| 43 | 'returnUrl' => $stub->returnUrl, |
|
| 44 | 'cancelUrl' => $stub->cancelUrl, |
|
| 45 | 'notifyUrl' => $stub->notifyUrl, |
|
| 46 | 'returnMethod' => $stub->returnMethod, |
|
| 47 | 'cancelMethod' => $stub->cancelMethod, |
|
| 48 | 'notifyMethod' => $stub->notifyMethod, |
|
| 49 | 'description' => $stub->description, |
|
| 50 | 'transactionId' => $stub->transactionId, |
|
| 51 | 'amount' => $stub->amount, |
|
| 52 | 'currency' => $stub->currency, |
|
| 53 | ]); |
|
| 54 | } |
|
| 55 | ||
| 56 | public function testSuccess() |
|
| 57 | { |
|
| @@ 31-55 (lines=25) @@ | ||
| 28 | protected $request; |
|
| 29 | ||
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | parent::setUp(); |
|
| 34 | ||
| 35 | $this->stub = new PurchaseRequestStub(); |
|
| 36 | $stub = $this->stub; |
|
| 37 | ||
| 38 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 39 | $this->request->initialize([ |
|
| 40 | 'purse' => $stub->purse, |
|
| 41 | 'signAlgorithm' => $stub->signAlgorithm, |
|
| 42 | 'signKey' => $stub->signKey, |
|
| 43 | 'testKey' => $stub->testKey, |
|
| 44 | 'returnUrl' => $stub->returnUrl, |
|
| 45 | 'returnMethod' => $stub->returnMethod, |
|
| 46 | 'cancelUrl' => $stub->cancelUrl, |
|
| 47 | 'cancelMethod' => $stub->cancelMethod, |
|
| 48 | 'notifyUrl' => $stub->notifyUrl, |
|
| 49 | 'notifyMethod' => $stub->notifyMethod, |
|
| 50 | 'description' => $stub->description, |
|
| 51 | 'transactionId' => $stub->transactionId, |
|
| 52 | 'amount' => $stub->amount, |
|
| 53 | 'currency' => $stub->currency, |
|
| 54 | ]); |
|
| 55 | } |
|
| 56 | ||
| 57 | public function testGetData() |
|
| 58 | { |
|
| @@ 31-56 (lines=26) @@ | ||
| 28 | */ |
|
| 29 | private $stub; |
|
| 30 | ||
| 31 | public function setUp() |
|
| 32 | { |
|
| 33 | parent::setUp(); |
|
| 34 | ||
| 35 | $this->stub = new PurchaseResponseStub(); |
|
| 36 | $stub = $this->stub; |
|
| 37 | ||
| 38 | $this->request = new PurchaseRequest($this->getHttpClient(), $this->getHttpRequest()); |
|
| 39 | $this->request->initialize([ |
|
| 40 | 'purse' => $stub->purse, |
|
| 41 | 'signAlgorithm' => $stub->signAlgorithm, |
|
| 42 | 'signKey' => $stub->signKey, |
|
| 43 | 'testKey' => $stub->testKey, |
|
| 44 | 'returnUrl' => $stub->returnUrl, |
|
| 45 | 'cancelUrl' => $stub->cancelUrl, |
|
| 46 | 'notifyUrl' => $stub->notifyUrl, |
|
| 47 | 'description' => $stub->description, |
|
| 48 | 'transactionId' => $stub->transactionId, |
|
| 49 | 'amount' => $stub->amount, |
|
| 50 | 'currency' => $stub->currency, |
|
| 51 | 'returnMethod' => $stub->returnMethod, |
|
| 52 | 'successMethod' => $stub->successMethod, |
|
| 53 | 'cancelMethod' => $stub->cancelMethod, |
|
| 54 | 'notifyMethod' => $stub->notifyMethod, |
|
| 55 | ]); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function testSuccess() |
|
| 59 | { |
|