Skip to content

Commit c448f72

Browse files
committed
[CodeQuality] Skip indirect parent is PHPUnit\Framework\TestCase on NoSetupWithParentCallOverrideRector
1 parent 9a2221b commit c448f72

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector\Fixture;
4+
5+
use Rector\PHPUnit\Tests\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector\Source\SomeFunctionalTestCase;
6+
7+
final class SkipIndirectParentTestCase extends SomeFunctionalTestCase
8+
{
9+
#[\Override]
10+
protected function setUp(): void
11+
{
12+
parent::setUp();
13+
14+
$some = 'value';
15+
}
16+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector\Source;
4+
5+
abstract Class SomeFunctionalTestCase extends \PHPUnit\Framework\TestCase
6+
{
7+
protected function setUp(): void
8+
{
9+
parent::setUp();
10+
11+
init_db();
12+
}
13+
}

0 commit comments

Comments
 (0)