Skip to content

Commit

Permalink
chore: move OutputCleaner in the helper NS
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Mar 9, 2024
1 parent 2a8ce27 commit cdc6894
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/generate-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

use Castor\Console\ApplicationFactory;
use Castor\PlatformUtil;
use Castor\Tests\Helper\OutputCleaner;
use Castor\Tests\Helper\WebServerHelper;
use Castor\Tests\OutputCleaner;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\BufferedOutput;
use Symfony\Component\Filesystem\Filesystem;
Expand Down
4 changes: 2 additions & 2 deletions tests/OutputCleaner.php → tests/Helper/OutputCleaner.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Castor\Tests;
namespace Castor\Tests\Helper;

final class OutputCleaner
{
Expand All @@ -16,6 +16,6 @@ public static function cleanOutput(string $string): string
$string = preg_replace('{you are using v\d+.\d+.\d+.}m', 'you are using vX.Y.Z.', $string);
$string = preg_replace('{you are using v\d+.\d+.\d+.}m', 'you are using vX.Y.Z.', $string);

return str_replace(\dirname(__DIR__, 1), '...', $string);
return str_replace(\dirname(__DIR__, 2), '...', $string);
}
}
1 change: 1 addition & 0 deletions tests/TaskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Castor\Tests;

use Castor\Tests\Helper\OutputCleaner;
use Castor\Tests\Helper\WebServerHelper;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Process\Process;
Expand Down

0 comments on commit cdc6894

Please sign in to comment.