Skip to content

Commit 8ddecf6

Browse files
authored
Fix the bug that cannot found setName in phpunit 10.x (#5868)
1 parent 80ad3ba commit 8ddecf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Concerns/RunTestsInCoroutine.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Throwable;
1515

1616
/**
17-
* @method string getName()
17+
* @method string name()
1818
*/
1919
trait RunTestsInCoroutine
2020
{
@@ -51,7 +51,7 @@ final protected function runTestsInCoroutine(...$arguments)
5151
final protected function runTest(): mixed
5252
{
5353
if (extension_loaded('swoole') && \Swoole\Coroutine::getCid() === -1 && $this->enableCoroutine) {
54-
$this->realTestName = $this->getName();
54+
$this->realTestName = $this->name();
5555
parent::setName('runTestsInCoroutine');
5656
}
5757

0 commit comments

Comments
 (0)