Skip to content

Commit

Permalink
Rename to Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 27, 2024
1 parent 9548dde commit 884edd3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion phpunit.integration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Codestyle</directory>
<directory suffix="Test.php">./tests/Integration</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use PhpCsFixer\Finder;
use Realodix\Relax\Config;

$finder = (new Finder)->in('./tests/Codestyle/tmp');
$finder = (new Finder)->in('./tests/Integration/tmp');

return Config::create('relax')
->setFinder($finder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Realodix\Relax\Tests\Codestyle;
namespace Realodix\Relax\Tests\Integration;

use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\StringInput;

abstract class CodestyleTestCase extends TestCase
abstract class IntegrationTestCase extends TestCase
{
protected function setUp(): void
{
Expand Down Expand Up @@ -68,7 +68,7 @@ protected function runFixer(string $name, bool $fix = false): bool
$application->setAutoExit(false);

$output = new \Symfony\Component\Console\Output\BufferedOutput;
$config = "tests/Codestyle/Config/config_{$name}.php";
$config = "tests/Integration/Config/config_{$name}.php";
$result = $application->run(new StringInput("fix {$dryRun} --diff --config={$config} --quiet"), $output);

return $result === 0;
Expand All @@ -85,6 +85,6 @@ protected function clearTempDirectory(): void

protected function getConfigPath(): string
{
return 'tests/codestyle/config/config_relax.php';
return 'tests/Integration/config/config_relax.php';
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Realodix\Relax\Tests\Codestyle;
namespace Realodix\Relax\Tests\Integration;

class RelaxRulesetTest extends CodestyleTestCase
class RelaxRulesetTest extends IntegrationTestCase
{
public function testRelaxRuleset(): void
{
Expand Down
File renamed without changes.

0 comments on commit 884edd3

Please sign in to comment.