Open Monograph Press  3.3.0
InvalidResponseExceptionTest.php
1 <?php
2 
4 
5 use Omnipay\Tests\TestCase;
6 
7 class InvalidResponseExceptionTest extends TestCase
8 {
10  {
11  $exception = new InvalidResponseException();
12  $this->assertSame('Invalid response from payment gateway', $exception->getMessage());
13  }
14 
16  {
17  $exception = new InvalidResponseException('Oops');
18  $this->assertSame('Oops', $exception->getMessage());
19  }
20 }
Omnipay\Common\Exception\InvalidResponseExceptionTest\testConstructWithDefaultMessage
testConstructWithDefaultMessage()
Definition: InvalidResponseExceptionTest.php:9
Omnipay\Common\Exception\InvalidResponseException
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/Exception/InvalidResponseException.php:10
Omnipay\Common\Exception
Definition: lib/vendor/omnipay/common/src/Omnipay/Common/Exception/BadMethodCallException.php:3
Omnipay\Common\Exception\InvalidResponseExceptionTest\testConstructWithCustomMessage
testConstructWithCustomMessage()
Definition: InvalidResponseExceptionTest.php:15
Omnipay\Common\Exception\InvalidResponseExceptionTest
Definition: InvalidResponseExceptionTest.php:7