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
publicfunctiontestCouldBeConstructedWithContextAndQueueAsArguments()
3134
{
3235
newAmqpConsumer($this->createContextMock(), newAmqpQueue('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
publicfunctiontestCouldBeConstructedWithRequiredArguments()
2832
{
2933
newAmqpProducer($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
publicfunctiontestCouldBeConstructedWithAmqpContextAsFirstArgument()
2124
{
2225
newAmqpSubscriptionConsumer($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
publicfunctiontestCouldBeConstructedWithContextAndQueueAsArguments()
2326
{
2427
newAmqpConsumer($this->createContext(), newAmqpQueue('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
publicfunctiontestCouldBeConstructedWithExtChannelAsFirstArgument()
3235
{
3336
newAmqpContext($this->createExtChannelMock());
3437
}
3538

39+
/**
40+
* @doesNotPerformAssertions
41+
*/
3642
publicfunctiontestCouldBeConstructedWithExtChannelCallbackFactoryAsFirstArgument()
3743
{
3844
newAmqpContext(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
publicfunctiontestCouldBeConstructedWithAmqpContextAsFirstArgument()
2124
{
2225
newAmqpSubscriptionConsumer($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
publicfunctiontestCouldBeConstructedWithRegistryAndProxyEventDispatcher()
2831
{
2932
newAsyncProcessor($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
publicfunctiontestCouldBeConstructedWithoutAnyArguments()
2528
{
2629
newPhpSerializerEventTransformer($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
publicfunctiontestCouldBeConstructedWithEventsMapAndTransformersMapAsArguments()
2225
{
2326
newSimpleRegistry([], []);

‎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
publicfunctiontestCouldBeConstructedWithRequiredArguments()
3235
{
3336
newDbalConsumer($this->createContextMock(), newDbalDestination('queue'));

0 commit comments

Comments
(0)