Skip to content

Commit 9a9aa5d

Browse files
committed
Removing constructor tests
Removing all tests that creates a new instance but doesn't call any methods nor preform any assertions.
1 parent fe2c0c9 commit 9a9aa5d

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

Tests/SqsConsumerTest.php

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

27-
/**
28-
* @doesNotPerformAssertions
29-
*/
30-
public function testCouldBeConstructedWithRequiredArguments()
31-
{
32-
new SqsConsumer($this->createContextMock(), new SqsDestination('queue'));
33-
}
34-
3527
public function testShouldReturnInstanceOfDestination()
3628
{
3729
$destination = new SqsDestination('queue');

Tests/SqsContextTest.php

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

28-
/**
29-
* @doesNotPerformAssertions
30-
*/
31-
public function testCouldBeConstructedWithSqsClientAsFirstArgument()
32-
{
33-
new SqsContext($this->createSqsClientMock(), []);
34-
}
35-
3628
public function testShouldAllowCreateEmptyMessage()
3729
{
3830
$context = new SqsContext($this->createSqsClientMock(), []);

Tests/SqsProducerTest.php

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

27-
/**
28-
* @doesNotPerformAssertions
29-
*/
30-
public function testCouldBeConstructedWithRequiredArguments()
31-
{
32-
new SqsProducer($this->createSqsContextMock());
33-
}
34-
3527
public function testShouldThrowIfBodyOfInvalidType()
3628
{
3729
$this->expectException(InvalidMessageException::class);

0 commit comments

Comments
 (0)