File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/payfast/tests/GatewayTest.php
Back
<?php namespace Omnipay\PayFast; use Omnipay\Tests\GatewayTestCase; class GatewayTest extends GatewayTestCase { public function setUp() { parent::setUp(); $this->gateway = new Gateway($this->getHttpClient(), $this->getHttpRequest()); } public function testPurchase() { $request = $this->gateway->purchase(array('amount' => '12.00')); $this->assertInstanceOf('\Omnipay\PayFast\Message\PurchaseRequest', $request); $this->assertSame('12.00', $request->getAmount()); } public function testCompletePurchase() { $request = $this->gateway->completePurchase(array('amount' => '12.00')); $this->assertInstanceOf('\Omnipay\PayFast\Message\CompletePurchaseRequest', $request); $this->assertSame('12.00', $request->getAmount()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings