Open Monograph Press
3.3.0
InvalidResponseExceptionTest.php
1
<?php
2
3
namespace
Omnipay\Common\Exception
;
4
5
use Omnipay\Tests\TestCase;
6
7
class
InvalidResponseExceptionTest
extends
TestCase
8
{
9
public
function
testConstructWithDefaultMessage
()
10
{
11
$exception =
new
InvalidResponseException
();
12
$this->assertSame(
'Invalid response from payment gateway'
, $exception->getMessage());
13
}
14
15
public
function
testConstructWithCustomMessage
()
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
plugins
paymethod
paypal
lib
vendor
omnipay
common
tests
Omnipay
Common
Exception
InvalidResponseExceptionTest.php
Generated on Fri Aug 28 2020 14:52:47 for Open Monograph Press by
1.8.17