Skip to content

Commit dc8d691

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 d90cf25 commit dc8d691

4 files changed

+0
-32
lines changed

Tests/MongodbConsumerTest.php

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

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

Tests/MongodbContextTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ public function testShouldImplementContextInterface()
2929
$this->assertClassImplements(Context::class, MongodbContext::class);
3030
}
3131

32-
/**
33-
* @doesNotPerformAssertions
34-
*/
35-
public function testCouldBeConstructedWithRequiredArguments()
36-
{
37-
new MongodbContext($this->createClientMock());
38-
}
39-
4032
public function testCouldBeConstructedWithEmptyConfiguration()
4133
{
4234
$context = new MongodbContext($this->createClientMock(), []);

Tests/MongodbProducerTest.php

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

26-
/**
27-
* @doesNotPerformAssertions
28-
*/
29-
public function testCouldBeConstructedWithRequiredArguments()
30-
{
31-
new MongodbProducer($this->createContextMock());
32-
}
33-
3426
public function testShouldThrowIfDestinationOfInvalidType()
3527
{
3628
$this->expectException(InvalidDestinationException::class);

Tests/MongodbSubscriptionConsumerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ public function testShouldImplementSubscriptionConsumerInterface()
2424
$this->assertTrue($rc->implementsInterface(SubscriptionConsumer::class));
2525
}
2626

27-
/**
28-
* @doesNotPerformAssertions
29-
*/
30-
public function testCouldBeConstructedWithMongodbContextAsFirstArgument()
31-
{
32-
new MongodbSubscriptionConsumer($this->createMongodbContextMock());
33-
}
34-
3527
public function testShouldAddConsumerAndCallbackToSubscribersPropertyOnSubscribe()
3628
{
3729
$subscriptionConsumer = new MongodbSubscriptionConsumer($this->createMongodbContextMock());

0 commit comments

Comments
 (0)