Skip to content

Commit 68ca073

Browse files
Ignore deprecated methods from code coverage
1 parent 8309713 commit 68ca073

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Framework/TestCase.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ final public static function atMost(int $allowedInvocations): InvokedAtMostCount
262262
/**
263263
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->returnValue())</code>
264264
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
265+
*
266+
* @codeCoverageIgnore
265267
*/
266268
final public static function returnValue(mixed $value): ReturnStub
267269
{
@@ -271,6 +273,8 @@ final public static function returnValue(mixed $value): ReturnStub
271273
/**
272274
* @deprecated Use <code>$double->willReturnMap()</code> instead of <code>$double->will($this->returnValueMap())</code>
273275
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
276+
*
277+
* @codeCoverageIgnore
274278
*/
275279
final public static function returnValueMap(array $valueMap): ReturnValueMapStub
276280
{
@@ -280,6 +284,8 @@ final public static function returnValueMap(array $valueMap): ReturnValueMapStub
280284
/**
281285
* @deprecated Use <code>$double->willReturnArgument()</code> instead of <code>$double->will($this->returnArgument())</code>
282286
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
287+
*
288+
* @codeCoverageIgnore
283289
*/
284290
final public static function returnArgument(int $argumentIndex): ReturnArgumentStub
285291
{
@@ -289,6 +295,8 @@ final public static function returnArgument(int $argumentIndex): ReturnArgumentS
289295
/**
290296
* @deprecated Use <code>$double->willReturnCallback()</code> instead of <code>$double->will($this->returnCallback())</code>
291297
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
298+
*
299+
* @codeCoverageIgnore
292300
*/
293301
final public static function returnCallback(callable $callback): ReturnCallbackStub
294302
{
@@ -298,6 +306,8 @@ final public static function returnCallback(callable $callback): ReturnCallbackS
298306
/**
299307
* @deprecated Use <code>$double->willReturnSelf()</code> instead of <code>$double->will($this->returnSelf())</code>
300308
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
309+
*
310+
* @codeCoverageIgnore
301311
*/
302312
final public static function returnSelf(): ReturnSelfStub
303313
{
@@ -313,6 +323,8 @@ final public static function throwException(Throwable $exception): ExceptionStub
313323
* @deprecated Use <code>$double->willReturn()</code> instead of <code>$double->will($this->onConsecutiveCalls())</code>
314324
* @see https://github.com/sebastianbergmann/phpunit/issues/5423
315325
* @see https://github.com/sebastianbergmann/phpunit/issues/5425
326+
*
327+
* @codeCoverageIgnore
316328
*/
317329
final public static function onConsecutiveCalls(mixed ...$arguments): ConsecutiveCallsStub
318330
{
@@ -619,6 +631,8 @@ final public function expectsOutput(): bool
619631
* @internal This method is not covered by the backward compatibility promise for PHPUnit
620632
*
621633
* @deprecated
634+
*
635+
* @codeCoverageIgnore
622636
*/
623637
final public function registerMockObjectsFromTestArgumentsRecursively(): void
624638
{
@@ -1189,6 +1203,8 @@ protected function runTest(): mixed
11891203
* @throws Exception
11901204
*
11911205
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5214
1206+
*
1207+
* @codeCoverageIgnore
11921208
*/
11931209
protected function iniSet(string $varName, string $newValue): void
11941210
{
@@ -1214,6 +1230,8 @@ protected function iniSet(string $varName, string $newValue): void
12141230
* @throws Exception
12151231
*
12161232
* @deprecated https://github.com/sebastianbergmann/phpunit/issues/5216
1233+
*
1234+
* @codeCoverageIgnore
12171235
*/
12181236
protected function setLocale(mixed ...$arguments): void
12191237
{

0 commit comments

Comments
 (0)