Skip to content

Commit 3cb9779

Browse files
committed
Fix deprecation warning about prophesize without using phpspec/prophecy-phpunit
1 parent d2266e2 commit 3cb9779

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
},
4040
"require-dev": {
4141
"omnipay/tests": "^4.1",
42-
"squizlabs/php_codesniffer": "^3"
42+
"squizlabs/php_codesniffer": "^3",
43+
"phpspec/prophecy-phpunit": "^2.0"
4344
},
4445
"extra": {
4546
"branch-alias": {

tests/Message/ResponseTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
use Omnipay\Common\Message\RequestInterface;
66
use Omnipay\Tests\TestCase;
7+
use Prophecy\PhpUnit\ProphecyTrait;
78

89
class ResponseTest extends TestCase
910
{
11+
use ProphecyTrait;
12+
1013
public function setUp(): void
1114
{
1215
$this->getMockRequest()->shouldReceive('getTransactionId')->andReturn('123456');

0 commit comments

Comments
 (0)