Skip to content

Commit 82d23fb

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 5d37d8b commit 82d23fb

File tree

58 files changed

+195
-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.

58 files changed

+195
-0
lines changed

Tests/ArrayProcessorRegistryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public function testShouldImplementProcessorRegistryInterface()
1818
$this->assertClassImplements(ProcessorRegistryInterface::class, ArrayProcessorRegistry::class);
1919
}
2020

21+
/**
22+
* @doesNotPerformAssertions
23+
*/
2124
public function testCouldBeConstructedWithoutAnyArgument()
2225
{
2326
new ArrayProcessorRegistry();

Tests/Client/ChainExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public function testShouldBeFinal()
2929
$this->assertClassFinal(ChainExtension::class);
3030
}
3131

32+
/**
33+
* @doesNotPerformAssertions
34+
*/
3235
public function testCouldBeConstructedWithExtensionsArray()
3336
{
3437
new ChainExtension([$this->createExtension(), $this->createExtension()]);

Tests/Client/ConsumptionExtension/DelayRedeliveredMessageExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
class DelayRedeliveredMessageExtensionTest extends TestCase
2525
{
26+
/**
27+
* @doesNotPerformAssertions
28+
*/
2629
public function testCouldBeConstructedWithRequiredArguments()
2730
{
2831
new DelayRedeliveredMessageExtension($this->createDriverMock(), 12345);

Tests/Client/ConsumptionExtension/ExclusiveCommandExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ public function testShouldBeFinal()
3434
$this->assertClassFinal(ExclusiveCommandExtension::class);
3535
}
3636

37+
/**
38+
* @doesNotPerformAssertions
39+
*/
3740
public function testCouldBeConstructedWithDriverAsFirstArgument()
3841
{
3942
new ExclusiveCommandExtension($this->createDriverStub());

Tests/Client/ConsumptionExtension/FlushSpoolProducerExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ public function testShouldImplementEndExtensionInterface()
3030
$this->assertClassImplements(EndExtensionInterface::class, FlushSpoolProducerExtension::class);
3131
}
3232

33+
/**
34+
* @doesNotPerformAssertions
35+
*/
3336
public function testCouldBeConstructedWithSpoolProducerAsFirstArgument()
3437
{
3538
new FlushSpoolProducerExtension($this->createSpoolProducerMock());

Tests/Client/ConsumptionExtension/LogExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public function testShouldSubClassOfLogExtension()
5555
$this->assertClassExtends(\Enqueue\Consumption\Extension\LogExtension::class, LogExtension::class);
5656
}
5757

58+
/**
59+
* @doesNotPerformAssertions
60+
*/
5861
public function testCouldBeConstructedWithoutAnyArguments()
5962
{
6063
new LogExtension();

Tests/Client/ConsumptionExtension/SetRouterPropertiesExtensionTest.php

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

30+
/**
31+
* @doesNotPerformAssertions
32+
*/
3033
public function testCouldBeConstructedWithRequiredArguments()
3134
{
3235
new SetRouterPropertiesExtension($this->createDriverMock());

Tests/Client/ConsumptionExtension/SetupBrokerExtensionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public function testShouldImplementStartExtensionInterface()
2121
$this->assertClassImplements(StartExtensionInterface::class, SetupBrokerExtension::class);
2222
}
2323

24+
/**
25+
* @doesNotPerformAssertions
26+
*/
2427
public function testCouldBeConstructedWithRequiredArguments()
2528
{
2629
new SetupBrokerExtension($this->createDriverMock());

Tests/Client/DelegateProcessorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
class DelegateProcessorTest extends TestCase
1515
{
16+
/**
17+
* @doesNotPerformAssertions
18+
*/
1619
public function testCouldBeConstructedWithRequiredArguments()
1720
{
1821
new DelegateProcessor($this->createProcessorRegistryMock());

Tests/Client/DriverFactoryTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function testShouldBeFinal()
6161
$this->assertTrue($rc->isFinal());
6262
}
6363

64+
/**
65+
* @doesNotPerformAssertions
66+
*/
6467
public function testCouldBeConstructedWithoutAnyArguments()
6568
{
6669
new DriverFactory();

0 commit comments

Comments
 (0)