diff --git a/phpunit.xml b/phpunit.xml index 3fd52b7..f960f45 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -18,8 +18,4 @@ src - - - - diff --git a/src/PHPUnitSwooleCoroutineExtension.php b/src/PHPUnitSwooleCoroutineExtension.php deleted file mode 100644 index 9128a22..0000000 --- a/src/PHPUnitSwooleCoroutineExtension.php +++ /dev/null @@ -1,43 +0,0 @@ -registerSubscriber(new class($this) implements FinishedSubscriber { - public function __construct(private PHPUnitSwooleCoroutineExtension $thisClass) {} - - public function notify(Finished $event): void - { - $this->thisClass->executeAfterLastTest(); - } - }); - } - - public function executeAfterLastTest(): void - { - /** - * @var array{ coroutine_num: int } $coroutineStats - */ - $coroutineStats = Coroutine::stats(); - - while ($coroutineStats['coroutine_num'] > 1) { - Coroutine::sleep(0.1); - } - - Timer::clearAll(); - } -}