Skip to content

Commit 5ab9059

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 ff7f070 commit 5ab9059

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

Tests/AmqpConsumerTest.php

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

22-
/**
23-
* @doesNotPerformAssertions
24-
*/
25-
public function testCouldBeConstructedWithContextAndQueueAsArguments()
26-
{
27-
new AmqpConsumer($this->createContext(), new AmqpQueue('aName'));
28-
}
29-
3022
/**
3123
* @return MockObject|AmqpContext
3224
*/

Tests/AmqpContextTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,6 @@ public function testShouldImplementQueueInteropContextInterface()
2828
$this->assertClassImplements(Context::class, AmqpContext::class);
2929
}
3030

31-
/**
32-
* @doesNotPerformAssertions
33-
*/
34-
public function testCouldBeConstructedWithExtChannelAsFirstArgument()
35-
{
36-
new AmqpContext($this->createExtChannelMock());
37-
}
38-
39-
/**
40-
* @doesNotPerformAssertions
41-
*/
42-
public function testCouldBeConstructedWithExtChannelCallbackFactoryAsFirstArgument()
43-
{
44-
new AmqpContext(function () {
45-
return $this->createExtChannelMock();
46-
});
47-
}
48-
4931
public function testThrowIfNeitherCallbackNorExtChannelAsFirstArgument()
5032
{
5133
$this->expectException(\InvalidArgumentException::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)