mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 07:22:43 +02:00
remove unused test configs
This commit is contained in:
parent
1092cd91c0
commit
5fa34b0e2d
@ -178,7 +178,7 @@ CODE_SAMPLE
|
||||
*/
|
||||
private function resolveClassesUsingTypes(): array
|
||||
{
|
||||
if ($this->classesUsingTypes) {
|
||||
if ($this->classesUsingTypes !== []) {
|
||||
return $this->classesUsingTypes;
|
||||
}
|
||||
|
||||
|
@ -195,7 +195,7 @@ abstract class AbstractRectorTestCase extends AbstractKernelTestCase
|
||||
|
||||
private function configureEnabledRectors(EnabledRectorsProvider $enabledRectorsProvider): void
|
||||
{
|
||||
if ($this->getRectorsWithConfiguration()) {
|
||||
if ($this->getRectorsWithConfiguration() !== []) {
|
||||
foreach ($this->getRectorsWithConfiguration() as $rectorClass => $rectorConfiguration) {
|
||||
$enabledRectorsProvider->addEnabledRector($rectorClass, $rectorConfiguration);
|
||||
}
|
||||
|
@ -13,6 +13,6 @@ final class Issue1225Test extends AbstractRectorTestCase
|
||||
|
||||
protected function provideConfig(): string
|
||||
{
|
||||
return __DIR__ . '/config/config1225.yaml';
|
||||
return __DIR__ . '/../../../config/level/twig/twig-underscore-to-namespace.yaml';
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +0,0 @@
|
||||
imports:
|
||||
# same as "--level twig-underscore-to-namespace"
|
||||
- { resource: "../../../../config/level/twig/twig-underscore-to-namespace.yaml" }
|
@ -1,3 +0,0 @@
|
||||
imports:
|
||||
# same as "--level cakephp34"
|
||||
- { resource: "../../../../config/level/cakephp/cakephp34.yaml" }
|
@ -14,8 +14,16 @@ final class RectorOrderTest extends AbstractRectorTestCase
|
||||
$this->doTestFiles([__DIR__ . '/Fixture/fixture.php.inc']);
|
||||
}
|
||||
|
||||
protected function provideConfig(): string
|
||||
/**
|
||||
* @return mixed[]
|
||||
*/
|
||||
protected function getRectorsWithConfiguration(): array
|
||||
{
|
||||
return __DIR__ . '/config.yaml';
|
||||
// order matters
|
||||
return [
|
||||
\Rector\PHPUnit\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector::class => [],
|
||||
\Rector\PHPUnit\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector::class => [],
|
||||
\Rector\PHPUnit\Rector\SpecificMethod\AssertFalseStrposToContainsRector::class => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
services:
|
||||
# order matters!
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertComparisonToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertSameBoolNullToSpecificMethodRector: ~
|
||||
Rector\PHPUnit\Rector\SpecificMethod\AssertFalseStrposToContainsRector: ~
|
Loading…
x
Reference in New Issue
Block a user