File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/authorizenet/tests/Message/SIMCompleteAuthorizeResponseTest.php
Back
<?php namespace Omnipay\AuthorizeNet\Message; use Omnipay\Tests\TestCase; class SIMCompleteAuthorizeResponseTest extends TestCase { public function testSuccess() { $response = new SIMCompleteAuthorizeResponse($this->getMockRequest(), array('x_response_code' => '1', 'x_trans_id' => '12345')); $this->assertTrue($response->isSuccessful()); $this->assertSame('12345', $response->getTransactionReference()); $this->assertNull($response->getMessage()); } public function testFailure() { $response = new SIMCompleteAuthorizeResponse($this->getMockRequest(), array('x_response_code' => '0', 'x_response_reason_text' => 'Declined')); $this->assertFalse($response->isSuccessful()); $this->assertNull($response->getTransactionReference()); $this->assertSame('Declined', $response->getMessage()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.09 |
proxy
|
phpinfo
|
Settings