Skip to content

Commit

Permalink
Merge branch '11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 28, 2024
2 parents a9e536e + d724b7f commit 8fd78be
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Framework/TestCase.php
Expand Up @@ -475,7 +475,9 @@ final public function runBare(): void
$hasMetRequirements = true;

if ($this->inIsolation) {
// @codeCoverageIgnoreStart
$this->invokeBeforeClassHookMethods($hookMethods, $emitter);
// @codeCoverageIgnoreEnd
}

if (method_exists(static::class, $this->methodName) &&
Expand Down Expand Up @@ -590,7 +592,9 @@ final public function runBare(): void
$this->invokeAfterTestHookMethods($hookMethods, $emitter);

if ($this->inIsolation) {
// @codeCoverageIgnoreStart
$this->invokeAfterClassHookMethods($hookMethods, $emitter);
// @codeCoverageIgnoreEnd
}
}
} catch (AssertionError|AssertionFailedError $e) {
Expand Down Expand Up @@ -649,6 +653,8 @@ final public function setDependencies(array $dependencies): void

/**
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*
* @codeCoverageIgnore
*/
final public function setDependencyInput(array $dependencyInput): void
{
Expand Down Expand Up @@ -974,6 +980,8 @@ final protected function atMost(int $allowedInvocations): InvokedAtMostCountMatc
/**
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->returnValue())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*
* @codeCoverageIgnore
*/
final protected function returnValue(mixed $value): ReturnStub
{
Expand All @@ -988,6 +996,8 @@ final protected function returnValue(mixed $value): ReturnStub
/**
* @deprecated Use <code>$double->willReturnMap()</code> instead of <code>$double->will($this->returnValueMap())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*
* @codeCoverageIgnore
*/
final protected function returnValueMap(array $valueMap): ReturnValueMapStub
{
Expand All @@ -1002,6 +1012,8 @@ final protected function returnValueMap(array $valueMap): ReturnValueMapStub
/**
* @deprecated Use <code>$double->willReturnArgument()</code> instead of <code>$double->will($this->returnArgument())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*
* @codeCoverageIgnore
*/
final protected function returnArgument(int $argumentIndex): ReturnArgumentStub
{
Expand All @@ -1016,6 +1028,8 @@ final protected function returnArgument(int $argumentIndex): ReturnArgumentStub
/**
* @deprecated Use <code>$double->willReturnCallback()</code> instead of <code>$double->will($this->returnCallback())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*
* @codeCoverageIgnore
*/
final protected function returnCallback(callable $callback): ReturnCallbackStub
{
Expand All @@ -1030,6 +1044,8 @@ final protected function returnCallback(callable $callback): ReturnCallbackStub
/**
* @deprecated Use <code>$double->willReturnSelf()</code> instead of <code>$double->will($this->returnSelf())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
*
* @codeCoverageIgnore
*/
final protected function returnSelf(): ReturnSelfStub
{
Expand All @@ -1050,6 +1066,8 @@ final protected function throwException(Throwable $exception): ExceptionStub
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->onConsecutiveCalls())</code>
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
* @see https://github.com/sebastianbergmann/phpunit/issues/5425
*
* @codeCoverageIgnore
*/
final protected function onConsecutiveCalls(mixed ...$arguments): ConsecutiveCallsStub
{
Expand Down Expand Up @@ -1202,6 +1220,8 @@ final protected function runTest(): mixed
* @throws Exception
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5214
*
* @codeCoverageIgnore
*/
final protected function iniSet(string $varName, string $newValue): void
{
Expand Down Expand Up @@ -1232,6 +1252,8 @@ final protected function iniSet(string $varName, string $newValue): void
* @throws Exception
*
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5216
*
* @codeCoverageIgnore
*/
final protected function setLocale(mixed ...$arguments): void
{
Expand Down Expand Up @@ -2227,6 +2249,8 @@ private function performAssertionsOnOutput(): void

/**
* @throws Throwable
*
* @codeCoverageIgnore
*/
private function invokeBeforeClassHookMethods(array $hookMethods, Event\Emitter $emitter): void
{
Expand Down Expand Up @@ -2292,6 +2316,8 @@ private function invokeAfterTestHookMethods(array $hookMethods, Event\Emitter $e

/**
* @throws Throwable
*
* @codeCoverageIgnore
*/
private function invokeAfterClassHookMethods(array $hookMethods, Event\Emitter $emitter): void
{
Expand Down

0 comments on commit 8fd78be

Please sign in to comment.