Skip to content

Commit 67a1ad2

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 a42a793 commit 67a1ad2

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

Tests/BufferedStompClientTest.php

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

24-
/**
25-
* @doesNotPerformAssertions
26-
*/
27-
public function testCouldBeConstructedWithRequiredArguments()
28-
{
29-
new BufferedStompClient('tcp://localhost:12345');
30-
}
31-
3224
public function testCouldGetBufferSizeValue()
3325
{
3426
$client = new BufferedStompClient('tcp://localhost:12345', 12345);

Tests/StompConsumerTest.php

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

28-
/**
29-
* @doesNotPerformAssertions
30-
*/
31-
public function testCouldBeConstructedWithRequiredAttributes()
32-
{
33-
new StompConsumer($this->createStompClientMock(), $this->createDummyDestination());
34-
}
35-
3628
public function testCouldGetQueue()
3729
{
3830
$consumer = new StompConsumer($this->createStompClientMock(), $dest = $this->createDummyDestination());

Tests/StompContextTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ public function testShouldImplementSessionInterface()
2323
$this->assertClassImplements(Context::class, StompContext::class);
2424
}
2525

26-
/**
27-
* @doesNotPerformAssertions
28-
*/
29-
public function testCouldBeCreatedWithRequiredArguments()
30-
{
31-
new StompContext($this->createStompClientMock(), ExtensionType::RABBITMQ);
32-
}
33-
34-
/**
35-
* @doesNotPerformAssertions
36-
*/
37-
public function testCouldBeConstructedWithExtChannelCallbackFactoryAsFirstArgument()
38-
{
39-
new StompContext(function () {
40-
return $this->createStompClientMock();
41-
}, ExtensionType::RABBITMQ);
42-
}
43-
4426
public function testThrowIfNeitherCallbackNorExtChannelAsFirstArgument()
4527
{
4628
$this->expectException(\InvalidArgumentException::class);

0 commit comments

Comments
 (0)