Skip to content

Commit 5269cb2

Browse files
committed
Fixing risky tests
Makring tests that have no assertions with the annotation to suppress phpunits warning around risky tests closes 1370
1 parent 2e289e8 commit 5269cb2

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Tests/PheanstalkConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class PheanstalkConsumerTest extends TestCase
1414
{
1515
use ClassExtensionTrait;
1616

17+
/**
18+
* @doesNotPerformAssertions
19+
*/
1720
public function testCouldBeConstructedWithDestinationAndPheanstalkAsArguments()
1821
{
1922
new PheanstalkConsumer(

Tests/PheanstalkContextTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public function testShouldImplementContextInterface()
2121
$this->assertClassImplements(Context::class, PheanstalkContext::class);
2222
}
2323

24+
/**
25+
* @doesNotPerformAssertions
26+
*/
2427
public function testCouldBeConstructedWithPheanstalkAsFirstArgument()
2528
{
2629
new PheanstalkContext($this->createPheanstalkMock());

Tests/PheanstalkProducerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class PheanstalkProducerTest extends TestCase
1818
{
1919
use ClassExtensionTrait;
2020

21+
/**
22+
* @doesNotPerformAssertions
23+
*/
2124
public function testCouldBeConstructedWithPheanstalkAsFirstArgument()
2225
{
2326
new PheanstalkProducer($this->createPheanstalkMock());

0 commit comments

Comments
 (0)