Skip to content

Commit 132d17c

Browse files
committed
skip abstract classes and test cases
1 parent b71925f commit 132d17c

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\PHPUnit100\Rector\Class_\ParentTestClassConstructorRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
abstract class SkipAbstractClasses extends TestCase
8+
{
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\PHPUnit100\Rector\Class_\ParentTestClassConstructorRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
final class SkipInCaseOfTestCase extends TestCase
8+
{
9+
}

rules/PHPUnit100/Rector/Class_/ParentTestClassConstructorRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace Rector\PHPUnit\PHPUnit100\Rector\Class_;
66

7-
use PhpParser\Node\Expr\ClassConstFetch;
8-
use PhpParser\Node\Arg;
97
use PhpParser\Modifiers;
108
use PhpParser\Node;
9+
use PhpParser\Node\Arg;
10+
use PhpParser\Node\Expr\ClassConstFetch;
1111
use PhpParser\Node\Expr\StaticCall;
1212
use PhpParser\Node\Name;
1313
use PhpParser\Node\Stmt\Class_;

0 commit comments

Comments
 (0)