diff --git a/src/Framework/TestCase.php b/src/Framework/TestCase.php index 9e53841a332..bece6944cbe 100644 --- a/src/Framework/TestCase.php +++ b/src/Framework/TestCase.php @@ -418,7 +418,8 @@ protected function tearDown()/* The :void return type declaration that should be /** * Returns a string representation of the test case. * - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \ReflectionException */ public function toString(): string { @@ -457,7 +458,7 @@ public function getAnnotations(): array } /** - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function getName(bool $withDataSet = true): ?string { @@ -471,7 +472,7 @@ public function getName(bool $withDataSet = true): ?string /** * Returns the size of the test. * - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function getSize(): int { @@ -482,7 +483,7 @@ public function getSize(): int } /** - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function hasSize(): bool { @@ -490,7 +491,7 @@ public function hasSize(): bool } /** - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function isSmall(): bool { @@ -498,7 +499,7 @@ public function isSmall(): bool } /** - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function isMedium(): bool { @@ -506,7 +507,7 @@ public function isMedium(): bool } /** - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function isLarge(): bool { @@ -656,12 +657,12 @@ public function hasFailed(): bool * * @throws CodeCoverageException * @throws ReflectionException - * @throws SebastianBergmann\CodeCoverage\CoveredCodeNotExecutedException - * @throws SebastianBergmann\CodeCoverage\InvalidArgumentException - * @throws SebastianBergmann\CodeCoverage\MissingCoversAnnotationException - * @throws SebastianBergmann\CodeCoverage\RuntimeException - * @throws SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\CodeCoverage\CoveredCodeNotExecutedException + * @throws \SebastianBergmann\CodeCoverage\InvalidArgumentException + * @throws \SebastianBergmann\CodeCoverage\MissingCoversAnnotationException + * @throws \SebastianBergmann\CodeCoverage\RuntimeException + * @throws \SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ public function run(TestResult $result = null): TestResult { @@ -806,6 +807,9 @@ public function run(TestResult $result = null): TestResult return $result; } + /** + * @throws \Throwable + */ public function runBare(): void { $this->numAssertions = 0; @@ -1123,7 +1127,7 @@ public function getDataSetAsString(bool $includeData = true): string * @throws AssertionFailedError * @throws Exception * @throws ExpectationFailedException - * @throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException + * @throws \SebastianBergmann\ObjectEnumerator\InvalidArgumentException * @throws Throwable */ protected function runTest() @@ -1832,7 +1836,7 @@ private function snapshotGlobalState(): void /** * @throws RiskyTestError - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException * @throws \InvalidArgumentException */ private function restoreGlobalState(): void @@ -1912,7 +1916,7 @@ private function createGlobalStateSnapshot(bool $backupGlobals): Snapshot /** * @throws RiskyTestError - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException * @throws \InvalidArgumentException */ private function compareGlobalStateSnapshots(Snapshot $before, Snapshot $after): void @@ -1972,7 +1976,7 @@ private function getProphet(): Prophet } /** - * @throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException + * @throws \SebastianBergmann\ObjectEnumerator\InvalidArgumentException */ private function shouldInvocationMockerBeReset(MockObject $mock): bool { @@ -1998,9 +2002,9 @@ private function shouldInvocationMockerBeReset(MockObject $mock): bool } /** - * @throws SebastianBergmann\ObjectEnumerator\InvalidArgumentException - * @throws SebastianBergmann\ObjectReflector\InvalidArgumentException - * @throws SebastianBergmann\RecursionContext\InvalidArgumentException + * @throws \SebastianBergmann\ObjectEnumerator\InvalidArgumentException + * @throws \SebastianBergmann\ObjectReflector\InvalidArgumentException + * @throws \SebastianBergmann\RecursionContext\InvalidArgumentException */ private function registerMockObjectsFromTestArguments(array $testArguments, array &$visited = []): void {