Skip to content

Commit fcab5c1

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 745260a commit fcab5c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Tests/GearmanContextTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public function testShouldImplementContextInterface()
2424
$this->assertClassImplements(Context::class, GearmanContext::class);
2525
}
2626

27+
/**
28+
* @doesNotPerformAssertions
29+
*/
2730
public function testCouldBeConstructedWithConnectionConfigAsFirstArgument()
2831
{
2932
new GearmanContext(['host' => 'aHost', 'port' => 'aPort']);

Tests/GearmanProducerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class GearmanProducerTest extends TestCase
1818
use ClassExtensionTrait;
1919
use SkipIfGearmanExtensionIsNotInstalledTrait;
2020

21+
/**
22+
* @doesNotPerformAssertions
23+
*/
2124
public function testCouldBeConstructedWithGearmanClientAsFirstArgument()
2225
{
2326
new GearmanProducer($this->createGearmanClientMock());

0 commit comments

Comments
 (0)