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