Skip to content

Commit ef1f350

Browse files
committed
add phpunit rules
1 parent aac2f4f commit ef1f350

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

config/doctrine-rules.neon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
rules:
2-
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoGetRepositoryOutsideServiceRule
3-
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoParentRepositoryRule
4-
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoRepositoryCallInDataFixtureRule
2+
- Symplify\PHPStanRules\Rules\Doctrine\NoGetRepositoryOutsideServiceRule
3+
- Symplify\PHPStanRules\Rules\Doctrine\NoParentRepositoryRule
4+
- Symplify\PHPStanRules\Rules\Doctrine\NoRepositoryCallInDataFixtureRule

config/phpunit-rules.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
- Symplify\PHPStanRules\Rules\PHPUnit\PublicStaticDataProviderRule
3+
- Symplify\PHPStanRules\Rules\PHPUnit\NoMockOnlyTestRule
4+
5+
- Symplify\PHPStanRules\Rules\Doctrine\NoDocumentMockingRule
6+
- Symplify\PHPStanRules\Rules\Doctrine\NoEntityMockingRule

src/PHPStan/Rules/Doctrine/NoGetRepositoryOutsideServiceRule.php renamed to src/Rules/Doctrine/NoGetRepositoryOutsideServiceRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
5+
namespace Symplify\PHPStanRules\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;

src/PHPStan/Rules/Doctrine/NoParentRepositoryRule.php renamed to src/Rules/Doctrine/NoParentRepositoryRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
5+
namespace Symplify\PHPStanRules\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Name;

src/PHPStan/Rules/Doctrine/NoRepositoryCallInDataFixtureRule.php renamed to src/Rules/Doctrine/NoRepositoryCallInDataFixtureRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
5+
namespace Symplify\PHPStanRules\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;

tests/Rules/Doctrine/NoGetRepositoryOutsideServiceRule/NoGetRepositoryOutsideServiceRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
1010
use PHPUnit\Framework\Attributes\DataProvider;
11-
use Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoGetRepositoryOutsideServiceRule;
11+
use Symplify\PHPStanRules\Rules\Doctrine\NoGetRepositoryOutsideServiceRule;
1212

1313
final class NoGetRepositoryOutsideServiceRuleTest extends RuleTestCase
1414
{

tests/Rules/Doctrine/NoParentRepositoryRule/NoParentRepositoryRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
1010
use PHPUnit\Framework\Attributes\DataProvider;
11-
use Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoParentRepositoryRule;
11+
use Symplify\PHPStanRules\Rules\Doctrine\NoParentRepositoryRule;
1212

1313
final class NoParentRepositoryRuleTest extends RuleTestCase
1414
{

tests/Rules/Doctrine/NoRepositoryCallInDataFixtureRule/NoRepositoryCallInDataFixtureRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
1010
use PHPUnit\Framework\Attributes\DataProvider;
11-
use Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoRepositoryCallInDataFixtureRule;
11+
use Symplify\PHPStanRules\Rules\Doctrine\NoRepositoryCallInDataFixtureRule;
1212

1313
final class NoRepositoryCallInDataFixtureRuleTest extends RuleTestCase
1414
{

0 commit comments

Comments
 (0)