Skip to content

Commit 1875263

Browse files
committed
Fixing risky tests
Makring tests that have no assertions with the annotation to suppress phpunits warning around risky tests closes 1370
1 parent d2856e4 commit 1875263

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Tests/AsyncProcessorTest.php

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

27+
/**
28+
* @doesNotPerformAssertions
29+
*/
2730
public function testCouldBeConstructedWithRegistryAndProxyEventDispatcher()
2831
{
2932
new AsyncProcessor($this->createRegistryMock(), $this->createProxyEventDispatcherMock());

Tests/PhpSerializerEventTransformerTest.php

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

24+
/**
25+
* @doesNotPerformAssertions
26+
*/
2427
public function testCouldBeConstructedWithoutAnyArguments()
2528
{
2629
new PhpSerializerEventTransformer($this->createContextStub());

Tests/SimpleRegistryTest.php

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

21+
/**
22+
* @doesNotPerformAssertions
23+
*/
2124
public function testCouldBeConstructedWithEventsMapAndTransformersMapAsArguments()
2225
{
2326
new SimpleRegistry([], []);

0 commit comments

Comments
 (0)