Skip to content

Commit

Permalink
Simplify ECS skip option (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick authored Jan 6, 2022
1 parent cc4b6d3 commit d1d2ca9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
],
"config": {
"sort-packages": true,
"preferred-install": "dist"
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"php": "^8.0",
Expand All @@ -23,7 +26,7 @@
"nunomaduro/larastan": "^1.0",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^8.0,<8.5.12 || ^9.3.3",
"zing/coding-standard": "^5.0"
"zing/coding-standard": "^5.1"
},
"autoload": {
"psr-4": {
Expand Down
9 changes: 1 addition & 8 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

declare(strict_types=1);

use PhpCsFixer\Fixer\ControlStructure\YodaStyleFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitInternalClassFixer;
use PhpCsFixer\Fixer\PhpUnit\PhpUnitTestClassRequiresCoversFixer;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Zing\CodingStandard\Set\ECSSetList;
Expand All @@ -15,11 +12,7 @@
$containerConfigurator->import(ECSSetList::PHP80_MIGRATION_RISKY);

$parameters = $containerConfigurator->parameters();
$parameters->set(Option::SKIP, [
YodaStyleFixer::class => null,
PhpUnitInternalClassFixer::class,
PhpUnitTestClassRequiresCoversFixer::class,
]);
$parameters->set(Option::PARALLEL, true);
$parameters->set(
Option::PATHS,
[__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/ecs.php', __DIR__ . '/rector.php']
Expand Down
5 changes: 4 additions & 1 deletion tests/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
use Obs\ObsClient;
use Zing\Flysystem\Obs\ObsAdapter;

class DriverTest extends TestCase
/**
* @internal
*/
final class DriverTest extends TestCase
{
public function testDriverRegistered(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Orchestra\Testbench\TestCase as BaseTestCase;
use Zing\LaravelFlysystem\Obs\ObsServiceProvider;

class TestCase extends BaseTestCase
abstract class TestCase extends BaseTestCase
{
/**
* @param mixed $app
Expand Down

0 comments on commit d1d2ca9

Please sign in to comment.