Skip to content

Commit fe2c0c9

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 67a51e9 commit fe2c0c9

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Tests/SqsConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public function testShouldImplementConsumerInterface()
2424
$this->assertClassImplements(Consumer::class, SqsConsumer::class);
2525
}
2626

27+
/**
28+
* @doesNotPerformAssertions
29+
*/
2730
public function testCouldBeConstructedWithRequiredArguments()
2831
{
2932
new SqsConsumer($this->createContextMock(), new SqsDestination('queue'));

Tests/SqsContextTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function testShouldImplementContextInterface()
2525
$this->assertClassImplements(Context::class, SqsContext::class);
2626
}
2727

28+
/**
29+
* @doesNotPerformAssertions
30+
*/
2831
public function testCouldBeConstructedWithSqsClientAsFirstArgument()
2932
{
3033
new SqsContext($this->createSqsClientMock(), []);

Tests/SqsProducerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public function testShouldImplementProducerInterface()
2424
$this->assertClassImplements(Producer::class, SqsProducer::class);
2525
}
2626

27+
/**
28+
* @doesNotPerformAssertions
29+
*/
2730
public function testCouldBeConstructedWithRequiredArguments()
2831
{
2932
new SqsProducer($this->createSqsContextMock());

0 commit comments

Comments
 (0)