Skip to content

Commit d53eb90

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 1875263 commit d53eb90

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

Tests/AsyncProcessorTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ public function testShouldImplementProcessorInterface()
2424
$this->assertClassImplements(Processor::class, AsyncProcessor::class);
2525
}
2626

27-
/**
28-
* @doesNotPerformAssertions
29-
*/
30-
public function testCouldBeConstructedWithRegistryAndProxyEventDispatcher()
31-
{
32-
new AsyncProcessor($this->createRegistryMock(), $this->createProxyEventDispatcherMock());
33-
}
34-
3527
public function testRejectIfMessageMissingEventNameProperty()
3628
{
3729
$processor = new AsyncProcessor($this->createRegistryMock(), $this->createProxyEventDispatcherMock());

Tests/PhpSerializerEventTransformerTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ public function testShouldImplementEventTransformerInterface()
2121
$this->assertClassImplements(EventTransformer::class, PhpSerializerEventTransformer::class);
2222
}
2323

24-
/**
25-
* @doesNotPerformAssertions
26-
*/
27-
public function testCouldBeConstructedWithoutAnyArguments()
28-
{
29-
new PhpSerializerEventTransformer($this->createContextStub());
30-
}
31-
3224
public function testShouldReturnMessageWithPhpSerializedEventAsBodyOnToMessage()
3325
{
3426
$transformer = new PhpSerializerEventTransformer($this->createContextStub());

Tests/SimpleRegistryTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ public function testShouldImplementRegistryInterface()
1818
$this->assertClassImplements(Registry::class, SimpleRegistry::class);
1919
}
2020

21-
/**
22-
* @doesNotPerformAssertions
23-
*/
24-
public function testCouldBeConstructedWithEventsMapAndTransformersMapAsArguments()
25-
{
26-
new SimpleRegistry([], []);
27-
}
28-
2921
public function testShouldAllowGetTransportNameByEventName()
3022
{
3123
$registry = new SimpleRegistry([

0 commit comments

Comments
 (0)