Skip to content

Commit a2177a5

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 48d3303 commit a2177a5

File tree

120 files changed

+421
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+421
-0
lines changed

pkg/amqp-bunny/Tests/AmqpConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public function testShouldImplementConsumerInterface()
2727
$this->assertClassImplements(Consumer::class, AmqpConsumer::class);
2828
}
2929

30+
/**
31+
* @doesNotPerformAssertions
32+
*/
3033
public function testCouldBeConstructedWithContextAndQueueAsArguments()
3134
{
3235
new AmqpConsumer($this->createContextMock(), new AmqpQueue('aName'));

pkg/amqp-bunny/Tests/AmqpProducerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class AmqpProducerTest extends TestCase
2424
{
2525
use ClassExtensionTrait;
2626

27+
/**
28+
* @doesNotPerformAssertions
29+
*/
30+
2731
public function testCouldBeConstructedWithRequiredArguments()
2832
{
2933
new AmqpProducer($this->createBunnyChannelMock(), $this->createContextMock());

pkg/amqp-bunny/Tests/AmqpSubscriptionConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public function testShouldImplementQueueInteropSubscriptionConsumerInterface()
1717
$this->assertTrue($rc->implementsInterface(SubscriptionConsumer::class));
1818
}
1919

20+
/**
21+
* @doesNotPerformAssertions
22+
*/
2023
public function testCouldBeConstructedWithAmqpContextAsFirstArgument()
2124
{
2225
new AmqpSubscriptionConsumer($this->createAmqpContextMock());

pkg/amqp-ext/Tests/AmqpConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public function testShouldImplementConsumerInterface()
1919
$this->assertClassImplements(Consumer::class, AmqpConsumer::class);
2020
}
2121

22+
/**
23+
* @doesNotPerformAssertions
24+
*/
2225
public function testCouldBeConstructedWithContextAndQueueAsArguments()
2326
{
2427
new AmqpConsumer($this->createContext(), new AmqpQueue('aName'));

pkg/amqp-ext/Tests/AmqpContextTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@ public function testShouldImplementQueueInteropContextInterface()
2828
$this->assertClassImplements(Context::class, AmqpContext::class);
2929
}
3030

31+
/**
32+
* @doesNotPerformAssertions
33+
*/
3134
public function testCouldBeConstructedWithExtChannelAsFirstArgument()
3235
{
3336
new AmqpContext($this->createExtChannelMock());
3437
}
3538

39+
/**
40+
* @doesNotPerformAssertions
41+
*/
3642
public function testCouldBeConstructedWithExtChannelCallbackFactoryAsFirstArgument()
3743
{
3844
new AmqpContext(function () {

pkg/amqp-ext/Tests/AmqpSubscriptionConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public function testShouldImplementQueueInteropSubscriptionConsumerInterface()
1717
$this->assertTrue($rc->implementsInterface(SubscriptionConsumer::class));
1818
}
1919

20+
/**
21+
* @doesNotPerformAssertions
22+
*/
2023
public function testCouldBeConstructedWithAmqpContextAsFirstArgument()
2124
{
2225
new AmqpSubscriptionConsumer($this->createAmqpContextMock());

pkg/async-event-dispatcher/Tests/AsyncProcessorTest.php

Lines changed: 3 additions & 0 deletions
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());

pkg/async-event-dispatcher/Tests/PhpSerializerEventTransformerTest.php

Lines changed: 3 additions & 0 deletions
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());

pkg/async-event-dispatcher/Tests/SimpleRegistryTest.php

Lines changed: 3 additions & 0 deletions
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([], []);

pkg/dbal/Tests/DbalConsumerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function testShouldImplementConsumerInterface()
2828
$this->assertClassImplements(Consumer::class, DbalConsumer::class);
2929
}
3030

31+
/**
32+
* @doesNotPerformAssertions
33+
*/
3134
public function testCouldBeConstructedWithRequiredArguments()
3235
{
3336
new DbalConsumer($this->createContextMock(), new DbalDestination('queue'));

0 commit comments

Comments
 (0)