Skip to content

Commit a6f398b

Browse files
author
Mathieu Lemoine
committed
Reduced dependency to voryx/Thruway
1 parent ec59b9e commit a6f398b

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

Tests/Functional/MongodbConsumerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function setUp()
2424
$this->context = $this->buildMongodbContext();
2525
}
2626

27-
protected function tearDown()
27+
protected function tearDown(): void
2828
{
2929
if ($this->context) {
3030
$this->context->close();

Tests/MongodbConsumerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ public function testRejectShouldReSendMessageToSameQueueOnRequeue()
113113
}
114114

115115
/**
116-
* @return MongodbProducer|\PHPUnit_Framework_MockObject_MockObject
116+
* @return MongodbProducer|\PHPUnit\Framework\MockObject\MockObject
117117
*/
118118
private function createProducerMock()
119119
{
120120
return $this->createMock(MongodbProducer::class);
121121
}
122122

123123
/**
124-
* @return \PHPUnit_Framework_MockObject_MockObject|MongodbContext
124+
* @return \PHPUnit\Framework\MockObject\MockObject|MongodbContext
125125
*/
126126
private function createContextMock()
127127
{

Tests/MongodbContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function testShouldThrowNotSupportedOnCreateTemporaryQueueCall()
183183
}
184184

185185
/**
186-
* @return \PHPUnit_Framework_MockObject_MockObject|Client
186+
* @return \PHPUnit\Framework\MockObject\MockObject|Client
187187
*/
188188
private function createClientMock()
189189
{

Tests/MongodbProducerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testShouldThrowIfDestinationOfInvalidType()
4343
}
4444

4545
/**
46-
* @return \PHPUnit_Framework_MockObject_MockObject|MongodbContext
46+
* @return \PHPUnit\Framework\MockObject\MockObject|MongodbContext
4747
*/
4848
private function createContextMock()
4949
{

Tests/MongodbSubscriptionConsumerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testThrowsIfTryConsumeWithoutSubscribers()
145145
}
146146

147147
/**
148-
* @return MongodbContext|\PHPUnit_Framework_MockObject_MockObject
148+
* @return MongodbContext|\PHPUnit\Framework\MockObject\MockObject
149149
*/
150150
private function createMongodbContextMock()
151151
{
@@ -155,7 +155,7 @@ private function createMongodbContextMock()
155155
/**
156156
* @param mixed|null $queueName
157157
*
158-
* @return Consumer|\PHPUnit_Framework_MockObject_MockObject
158+
* @return Consumer|\PHPUnit\Framework\MockObject\MockObject
159159
*/
160160
private function createConsumerStub($queueName = null)
161161
{

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"php": "^7.1.3",
1414
"queue-interop/queue-interop": "^0.7|^0.8",
1515
"mongodb/mongodb": "^1.2",
16-
"ext-mongodb": "^1.3"
16+
"ext-mongodb": "^1.5"
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "~5.4.0",

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
bootstrap="./vendor/autoload.php"
1312
>
1413

0 commit comments

Comments
 (0)