Skip to content

Commit b03fe9b

Browse files
Ignore empty template methods from code coverage (as they are never called)
1 parent 0f3375d commit b03fe9b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Framework/TestCase.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,20 +333,26 @@ public function __construct(string $name)
333333

334334
/**
335335
* This method is called before the first test of this test class is run.
336+
*
337+
* @codeCoverageIgnore
336338
*/
337339
public static function setUpBeforeClass(): void
338340
{
339341
}
340342

341343
/**
342344
* This method is called after the last test of this test class is run.
345+
*
346+
* @codeCoverageIgnore
343347
*/
344348
public static function tearDownAfterClass(): void
345349
{
346350
}
347351

348352
/**
349353
* This method is called before each test.
354+
*
355+
* @codeCoverageIgnore
350356
*/
351357
protected function setUp(): void
352358
{
@@ -356,6 +362,8 @@ protected function setUp(): void
356362
* Performs assertions shared by all tests of a test case.
357363
*
358364
* This method is called between setUp() and test.
365+
*
366+
* @codeCoverageIgnore
359367
*/
360368
protected function assertPreConditions(): void
361369
{
@@ -365,13 +373,17 @@ protected function assertPreConditions(): void
365373
* Performs assertions shared by all tests of a test case.
366374
*
367375
* This method is called between test and tearDown().
376+
*
377+
* @codeCoverageIgnore
368378
*/
369379
protected function assertPostConditions(): void
370380
{
371381
}
372382

373383
/**
374384
* This method is called after each test.
385+
*
386+
* @codeCoverageIgnore
375387
*/
376388
protected function tearDown(): void
377389
{

0 commit comments

Comments
 (0)