Skip to content

Commit 3eb9ba3

Browse files
committed
Fix annotations
1 parent 689c70a commit 3eb9ba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/test/RetryTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PHPUnit\Framework\IncompleteTestError;
66
use PHPUnit\Framework\SkippedTestError;
7+
use PHPUnit\Util\Test;
78

89
trait RetryTrait
910
{
@@ -46,7 +47,7 @@ public function runBare(): void
4647
*/
4748
private function getNumberOfRetries()
4849
{
49-
$annotations = $this->getAnnotations();
50+
$annotations = Test::parseTestMethodAnnotations(static::class, $this->getName(false));
5051

5152
if (isset($annotations['method']['retry'][0])) {
5253
return $annotations['method']['retry'][0];

0 commit comments

Comments
 (0)