diff --git a/src/Illuminate/Foundation/Testing/TestCase.php b/src/Illuminate/Foundation/Testing/TestCase.php index 69d49280d2f0..c540407ce040 100644 --- a/src/Illuminate/Foundation/Testing/TestCase.php +++ b/src/Illuminate/Foundation/Testing/TestCase.php @@ -18,6 +18,7 @@ use Mockery\Exception\InvalidCountException; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase as BaseTestCase; +use PHPUnit\Util\Annotation\Registry; use ReflectionProperty; use Throwable; @@ -237,6 +238,11 @@ protected function tearDown(): void public static function tearDownAfterClass(): void { static::$latestResponse = null; + + (function () { + $this->classDocBlocks = []; + $this->methodDocBlocks = []; + })->call(Registry::getInstance()); } /**