Skip to content

Commit e9fdc3a

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 5269cb2 commit e9fdc3a

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

Tests/PheanstalkConsumerTest.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@ class PheanstalkConsumerTest extends TestCase
1414
{
1515
use ClassExtensionTrait;
1616

17-
/**
18-
* @doesNotPerformAssertions
19-
*/
20-
public function testCouldBeConstructedWithDestinationAndPheanstalkAsArguments()
21-
{
22-
new PheanstalkConsumer(
23-
new PheanstalkDestination('aQueueName'),
24-
$this->createPheanstalkMock()
25-
);
26-
}
27-
2817
public function testShouldReturnQueueSetInConstructor()
2918
{
3019
$destination = new PheanstalkDestination('aQueueName');

Tests/PheanstalkContextTest.php

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

24-
/**
25-
* @doesNotPerformAssertions
26-
*/
27-
public function testCouldBeConstructedWithPheanstalkAsFirstArgument()
28-
{
29-
new PheanstalkContext($this->createPheanstalkMock());
30-
}
31-
3224
public function testThrowNotImplementedOnCreateTemporaryQueue()
3325
{
3426
$context = new PheanstalkContext($this->createPheanstalkMock());

Tests/PheanstalkProducerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ class PheanstalkProducerTest extends TestCase
1818
{
1919
use ClassExtensionTrait;
2020

21-
/**
22-
* @doesNotPerformAssertions
23-
*/
24-
public function testCouldBeConstructedWithPheanstalkAsFirstArgument()
25-
{
26-
new PheanstalkProducer($this->createPheanstalkMock());
27-
}
28-
2921
public function testThrowIfDestinationInvalid()
3022
{
3123
$producer = new PheanstalkProducer($this->createPheanstalkMock());

0 commit comments

Comments
 (0)