Skip to content

Commit 7358519

Browse files
committed
Add @internal annotations to internal traits
1 parent 5ab2ea6 commit 7358519

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

src/Internal/AsyncTestSetNameTrait.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
use PHPUnit\Framework\TestCase;
66

77
if ((new \ReflectionMethod(TestCase::class, 'setName'))->hasReturnType()) {
8-
// PHPUnit 7+
8+
/**
9+
* PHPUnit 7+
10+
*
11+
* @internal
12+
*/
913
trait AsyncTestSetNameTrait
1014
{
1115
/** @var string Temporary storage for actual test name. */
@@ -21,7 +25,11 @@ final public function setName(string $name): void
2125
}
2226
}
2327
} else {
24-
// PHPUnit 6
28+
/**
29+
* PHPUnit 6
30+
*
31+
* @internal
32+
*/
2533
trait AsyncTestSetNameTrait
2634
{
2735
/** @var string Temporary storage for actual test name. */

src/Internal/AsyncTestSetUpTrait.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
use PHPUnit\Framework\TestCase;
77

88
if ((new \ReflectionMethod(TestCase::class, 'setUp'))->hasReturnType()) {
9-
// PHPUnit 8+
9+
/**
10+
* PHPUnit 8+
11+
*
12+
* @internal
13+
*/
1014
trait AsyncTestSetUpTrait
1115
{
1216
/** @var bool */
@@ -20,7 +24,11 @@ protected function setUp(): void
2024
}
2125
}
2226
} else {
23-
// PHPUnit 6 or 7
27+
/**
28+
* PHPUnit 6 or 7
29+
*
30+
* @internal
31+
*/
2432
trait AsyncTestSetUpTrait
2533
{
2634
/** @var bool */

0 commit comments

Comments
 (0)