Skip to content

Commit 19c7177

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 9a9a607 commit 19c7177

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

Tests/AmqpConsumerTest.php

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

30-
/**
31-
* @doesNotPerformAssertions
32-
*/
33-
public function testCouldBeConstructedWithContextAndQueueAsArguments()
34-
{
35-
new AmqpConsumer($this->createContextMock(), new AmqpQueue('aName'));
36-
}
37-
3830
public function testShouldReturnQueue()
3931
{
4032
$queue = new AmqpQueue('aName');

Tests/AmqpProducerTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ class AmqpProducerTest extends TestCase
2424
{
2525
use ClassExtensionTrait;
2626

27-
/**
28-
* @doesNotPerformAssertions
29-
*/
30-
31-
public function testCouldBeConstructedWithRequiredArguments()
32-
{
33-
new AmqpProducer($this->createBunnyChannelMock(), $this->createContextMock());
34-
}
35-
3627
public function testShouldImplementQueueInteropProducerInterface()
3728
{
3829
$this->assertClassImplements(Producer::class, AmqpProducer::class);

Tests/AmqpSubscriptionConsumerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ public function testShouldImplementQueueInteropSubscriptionConsumerInterface()
1717
$this->assertTrue($rc->implementsInterface(SubscriptionConsumer::class));
1818
}
1919

20-
/**
21-
* @doesNotPerformAssertions
22-
*/
23-
public function testCouldBeConstructedWithAmqpContextAsFirstArgument()
24-
{
25-
new AmqpSubscriptionConsumer($this->createAmqpContextMock());
26-
}
27-
2820
/**
2921
* @return AmqpContext|MockObject
3022
*/

0 commit comments

Comments
 (0)