Skip to content

Commit bae7b5f

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 eea57f9 commit bae7b5f

File tree

6 files changed

+0
-48
lines changed

6 files changed

+0
-48
lines changed

Tests/NullConnectionFactoryTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ public function testShouldImplementConnectionFactoryInterface()
1717
$this->assertClassImplements(ConnectionFactory::class, NullConnectionFactory::class);
1818
}
1919

20-
/**
21-
* @doesNotPerformAssertions
22-
*/
23-
public function testCouldBeConstructedWithoutAnyArguments()
24-
{
25-
new NullConnectionFactory();
26-
}
27-
2820
public function testShouldReturnNullContextOnCreateContextCall()
2921
{
3022
$factory = new NullConnectionFactory();

Tests/NullConsumerTest.php

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

21-
/**
22-
* @doesNotPerformAssertions
23-
*/
24-
public function testCouldBeConstructedWithQueueAsArgument()
25-
{
26-
new NullConsumer(new NullQueue('aName'));
27-
}
28-
2921
public function testShouldAlwaysReturnNullOnReceive()
3022
{
3123
$consumer = new NullConsumer(new NullQueue('theQueueName'));

Tests/NullContextTest.php

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

24-
/**
25-
* @doesNotPerformAssertions
26-
*/
27-
public function testCouldBeConstructedWithoutAnyArguments()
28-
{
29-
new NullContext();
30-
}
31-
3224
public function testShouldAllowCreateMessageWithoutAnyArguments()
3325
{
3426
$context = new NullContext();

Tests/NullProducerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ public function testShouldImplementProducerInterface()
1818
$this->assertClassImplements(Producer::class, NullProducer::class);
1919
}
2020

21-
/**
22-
* @doesNotPerformAssertions
23-
*/
24-
public function testCouldBeConstructedWithoutAnyArguments()
25-
{
26-
new NullProducer();
27-
}
28-
2921
/**
3022
* @doesNotPerformAssertions
3123
*/

Tests/NullQueueTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ public function testShouldImplementQueueInterface()
1616
$this->assertClassImplements(Queue::class, NullQueue::class);
1717
}
1818

19-
/**
20-
* @doesNotPerformAssertions
21-
*/
22-
public function testCouldBeConstructedWithNameAsArgument()
23-
{
24-
new NullQueue('aName');
25-
}
26-
2719
public function testShouldAllowGetNameSetInConstructor()
2820
{
2921
$queue = new NullQueue('theName');

Tests/NullTopicTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ public function testShouldImplementTopicInterface()
1616
$this->assertClassImplements(Topic::class, NullTopic::class);
1717
}
1818

19-
/**
20-
* @doesNotPerformAssertions
21-
*/
22-
public function testCouldBeConstructedWithNameAsArgument()
23-
{
24-
new NullTopic('aName');
25-
}
26-
2719
public function testShouldAllowGetNameSetInConstructor()
2820
{
2921
$topic = new NullTopic('theName');

0 commit comments

Comments
 (0)