File manager - Edit - /home/opticamezl/www/newok/libraries/fabrik/vendor/omnipay/dummy/tests/Message/ResponseTest.php
Back
<?php namespace Omnipay\Dummy\Message; use Omnipay\Tests\TestCase; class ResponseTest extends TestCase { public function testSuccess() { $response = new Response( $this->getMockRequest(), array('reference' => 'abc123', 'success' => 1, 'message' => 'Success') ); $this->assertTrue($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('abc123', $response->getTransactionReference()); $this->assertSame('Success', $response->getMessage()); } public function testFailure() { $response = new Response( $this->getMockRequest(), array('reference' => 'abc123', 'success' => 0, 'message' => 'Failure') ); $this->assertFalse($response->isSuccessful()); $this->assertFalse($response->isRedirect()); $this->assertSame('abc123', $response->getTransactionReference()); $this->assertSame('Failure', $response->getMessage()); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings