diff --git a/infection.json5 b/infection.json5 index 6c3636f..f0006a7 100644 --- a/infection.json5 +++ b/infection.json5 @@ -23,21 +23,21 @@ "CastString": { "ignore": [ // I can't find a case in practice where this would happen - "Fidry\\CpuCoreCounter\\Exec\\ProcOpen::execute" + "Fidry\\CpuCoreCounter\\Executor\\ProcOpen::execute" ] }, "FalseValue": { "ignore": [ // This is from thecodingmachine/safe – leave it alone - "Fidry\\CpuCoreCounter\\Exec\\ShellExec::execute" + "Fidry\\CpuCoreCounter\\Executor\\ShellExec::execute" ] }, "FunctionCallRemoval": { "ignore": [ // I can't find a case in practice where this would happen - "Fidry\\CpuCoreCounter\\Exec\\ProcOpen::execute", + "Fidry\\CpuCoreCounter\\Executor\\ProcOpen::execute", // This is from thecodingmachine/safe – leave it alone - "Fidry\\CpuCoreCounter\\Exec\\ShellExec::execute" + "Fidry\\CpuCoreCounter\\Executor\\ShellExec::execute" ] }, "PublicVisibility": false diff --git a/src/Exec/ProcOpen.php b/src/Executor/ProcOpen.php similarity index 96% rename from src/Exec/ProcOpen.php rename to src/Executor/ProcOpen.php index 78ed77b..f5d0f4c 100644 --- a/src/Exec/ProcOpen.php +++ b/src/Executor/ProcOpen.php @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Fidry\CpuCoreCounter\Exec; +namespace Fidry\CpuCoreCounter\Executor; use function fclose; use function is_resource; diff --git a/src/Finder/ProcOpenBasedFinder.php b/src/Finder/ProcOpenBasedFinder.php index 44e5e27..f272cee 100644 --- a/src/Finder/ProcOpenBasedFinder.php +++ b/src/Finder/ProcOpenBasedFinder.php @@ -13,7 +13,7 @@ namespace Fidry\CpuCoreCounter\Finder; -use Fidry\CpuCoreCounter\Exec\ProcOpen; +use Fidry\CpuCoreCounter\Executor\ProcOpen; use function filter_var; use function function_exists; use function is_int; diff --git a/tests/Exec/ProcOpenTest.php b/tests/Executor/ProcOpenTest.php similarity index 85% rename from tests/Exec/ProcOpenTest.php rename to tests/Executor/ProcOpenTest.php index 781364f..c205957 100644 --- a/tests/Exec/ProcOpenTest.php +++ b/tests/Executor/ProcOpenTest.php @@ -11,14 +11,14 @@ declare(strict_types=1); -namespace Fidry\CpuCoreCounter\Test\Exec; +namespace Fidry\CpuCoreCounter\Test\Executor; -use Fidry\CpuCoreCounter\Exec\ProcOpen; +use Fidry\CpuCoreCounter\Executor\ProcOpen; use PHPUnit\Framework\TestCase; use const PHP_EOL; /** - * @covers \Fidry\CpuCoreCounter\Exec\ProcOpen + * @covers \Fidry\CpuCoreCounter\Executor\ProcOpen * * @internal */ @@ -49,7 +49,7 @@ public function test_it_can_execute_a_command_writing_output_to_the_stdout_inste $command = 'echoerr() { echo "$@" 1>&2; }; echoerr "Hello world!" 2>&1'; $expected = ['Hello world!'.PHP_EOL, '']; - $actual = ProcOpen::execute($command); + $actual = \Fidry\CpuCoreCounter\Executor\ProcOpen::execute($command); self::assertSame($expected, $actual); }