Skip to content

Commit

Permalink
Fix the bug that cannot found setName in phpunit 10.x (#5868)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia authored Jun 20, 2023
1 parent 80ad3ba commit 8ddecf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/RunTestsInCoroutine.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Throwable;

/**
* @method string getName()
* @method string name()
*/
trait RunTestsInCoroutine
{
Expand Down Expand Up @@ -51,7 +51,7 @@ final protected function runTestsInCoroutine(...$arguments)
final protected function runTest(): mixed
{
if (extension_loaded('swoole') && \Swoole\Coroutine::getCid() === -1 && $this->enableCoroutine) {
$this->realTestName = $this->getName();
$this->realTestName = $this->name();
parent::setName('runTestsInCoroutine');
}

Expand Down

0 comments on commit 8ddecf6

Please sign in to comment.