diff --git a/tests/AsyncTestCaseTest.php b/tests/AsyncTestCaseTest.php index 0e7927b..144b143 100644 --- a/tests/AsyncTestCaseTest.php +++ b/tests/AsyncTestCaseTest.php @@ -4,6 +4,7 @@ namespace WyriHaximus\Tests\AsyncTestUtilities; +use Fiber; use React\EventLoop\Loop; use WyriHaximus\AsyncTestUtilities\AsyncTestCase; use WyriHaximus\AsyncTestUtilities\TimeOut; @@ -29,6 +30,11 @@ public function testAllTestsAreRanInAFiber(): void echo 'b'; } + public function testFiberGetCurrentReturnsAFiberInstance(): void + { + self::assertInstanceOf(Fiber::class, Fiber::getCurrent()); + } + public function testExpectCallableExactly(): void { $callable = $this->expectCallableExactly(3);