Skip to content

Commit 1ec6b8b

Browse files
author
Mathieu Lemoine
committed
Reduced dependency to voryx/Thruway
1 parent c48fb89 commit 1ec6b8b

10 files changed

Lines changed: 12 additions & 12 deletions

Tests/FsConsumerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ public function testShouldWaitTwoSecondsForMessageAndExitOnReceive()
134134
}
135135

136136
/**
137-
* @return \PHPUnit_Framework_MockObject_MockObject|FsProducer
137+
* @return \PHPUnit\Framework\MockObject\MockObject|FsProducer
138138
*/
139139
private function createProducerMock()
140140
{
141141
return $this->createMock(FsProducer::class);
142142
}
143143

144144
/**
145-
* @return \PHPUnit_Framework_MockObject_MockObject|FsContext
145+
* @return \PHPUnit\Framework\MockObject\MockObject|FsContext
146146
*/
147147
private function createContextMock()
148148
{

Tests/FsProducerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function testShouldCallContextWorkWithFileAndCallbackToItOnSend()
6363
}
6464

6565
/**
66-
* @return \PHPUnit_Framework_MockObject_MockObject|FsContext
66+
* @return \PHPUnit\Framework\MockObject\MockObject|FsContext
6767
*/
6868
private function createContextMock()
6969
{

Tests/Functional/FsCommonUseCasesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function setUp()
2424
new TempFile(sys_get_temp_dir().'/fs_test_queue');
2525
}
2626

27-
public function tearDown()
27+
public function tearDown(): void
2828
{
2929
$this->fsContext->close();
3030
}

Tests/Functional/FsConsumerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function setUp()
2222
$this->fsContext->purgeQueue($this->fsContext->createQueue('fs_test_queue'));
2323
}
2424

25-
public function tearDown()
25+
public function tearDown(): void
2626
{
2727
$this->fsContext->close();
2828
}

Tests/Functional/FsConsumptionUseCasesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function setUp()
3232
new TempFile(sys_get_temp_dir().'/fs_test_queue');
3333
}
3434

35-
public function tearDown()
35+
public function tearDown(): void
3636
{
3737
$this->fsContext->close();
3838
}

Tests/Functional/FsContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class FsContextTest extends TestCase
1414
*/
1515
private $fsContext;
1616

17-
public function tearDown()
17+
public function tearDown(): void
1818
{
1919
$fs = new Filesystem();
2020
$fs->remove(sys_get_temp_dir().'/enqueue');

Tests/Functional/FsProducerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function setUp()
2222
file_put_contents(sys_get_temp_dir().'/fs_test_queue', '');
2323
}
2424

25-
public function tearDown()
25+
public function tearDown(): void
2626
{
2727
$this->fsContext->close();
2828
}

Tests/Functional/FsRpcUseCasesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function setUp()
2828
new TempFile(sys_get_temp_dir().'/fs_reply_queue');
2929
}
3030

31-
public function tearDown()
31+
public function tearDown(): void
3232
{
3333
$this->fsContext->close();
3434
}

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"makasim/temp-file": "^0.2@stable"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "~5.5",
16+
"phpunit/phpunit": "~7.5",
1717
"enqueue/null": "0.9.x-dev",
1818
"enqueue/test": "0.9.x-dev",
1919
"queue-interop/queue-spec": "^0.6",
20-
"symfony/dependency-injection": "^3.4|^4|^5"
20+
"symfony/dependency-injection": "^3.4|^4|^5",
21+
"symfony/yaml": "^3.4|^4|^5"
2122
},
2223
"support": {
2324
"email": "opensource@forma-pro.com",

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)