Skip to content

Commit 780f795

Browse files
committed
Merge pull request #40 from PatronBase/master
Add always-false isPending() method
2 parents 2313e02 + 3d7fd40 commit 780f795

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/Omnipay/Common/Message/AbstractResponse.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public function getRequest()
6767
return $this->request;
6868
}
6969

70+
public function isPending()
71+
{
72+
return false;
73+
}
74+
7075
public function isRedirect()
7176
{
7277
return false;

tests/Omnipay/Common/Message/AbstractResponseTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function testConstruct()
2424

2525
public function testDefaultMethods()
2626
{
27+
$this->assertFalse($this->response->isPending());
2728
$this->assertFalse($this->response->isRedirect());
2829
$this->assertNull($this->response->getData());
2930
$this->assertNull($this->response->getTransactionReference());
@@ -91,6 +92,11 @@ public function testGetRedirectResponseInvalidMethod()
9192

9293
class AbstractResponseTest_MockRedirectResponse extends AbstractResponse implements RedirectResponseInterface
9394
{
95+
public function isPending()
96+
{
97+
return false;
98+
}
99+
94100
public function isSuccessful()
95101
{
96102
return false;

0 commit comments

Comments
 (0)