Skip to content

Commit db8605c

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 25a0861 commit db8605c

File tree

4 files changed

+0
-32
lines changed

4 files changed

+0
-32
lines changed

Tests/DbalConsumerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ public function testShouldImplementConsumerInterface()
2828
$this->assertClassImplements(Consumer::class, DbalConsumer::class);
2929
}
3030

31-
/**
32-
* @doesNotPerformAssertions
33-
*/
34-
public function testCouldBeConstructedWithRequiredArguments()
35-
{
36-
new DbalConsumer($this->createContextMock(), new DbalDestination('queue'));
37-
}
38-
3931
public function testShouldReturnInstanceOfDestination()
4032
{
4133
$destination = new DbalDestination('queue');

Tests/DbalContextTest.php

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

30-
/**
31-
* @doesNotPerformAssertions
32-
*/
33-
public function testCouldBeConstructedWithRequiredArguments()
34-
{
35-
new DbalContext($this->createConnectionMock());
36-
}
37-
3830
public function testCouldBeConstructedWithEmptyConfiguration()
3931
{
4032
$factory = new DbalContext($this->createConnectionMock(), []);

Tests/DbalProducerTest.php

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

24-
/**
25-
* @doesNotPerformAssertions
26-
*/
27-
public function testCouldBeConstructedWithRequiredArguments()
28-
{
29-
new DbalProducer($this->createContextMock());
30-
}
31-
3224
public function testShouldThrowIfDestinationOfInvalidType()
3325
{
3426
$this->expectException(InvalidDestinationException::class);

Tests/DbalSubscriptionConsumerTest.php

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

28-
/**
29-
* @doesNotPerformAssertions
30-
*/
31-
public function testCouldBeConstructedWithDbalContextAsFirstArgument()
32-
{
33-
new DbalSubscriptionConsumer($this->createDbalContextMock());
34-
}
35-
3628
public function testShouldAddConsumerAndCallbackToSubscribersPropertyOnSubscribe()
3729
{
3830
$subscriptionConsumer = new DbalSubscriptionConsumer($this->createDbalContextMock());

0 commit comments

Comments
 (0)