Refactor shell utilities: reorganize namespaces and introduce Shell base class

This commit is contained in:
crazywhalecc
2025-08-06 20:28:25 +08:00
committed by Jerry Ma
parent cc447a089a
commit e28580de00
10 changed files with 314 additions and 150 deletions

View File

@@ -4,8 +4,8 @@ declare(strict_types=1);
namespace SPC\Tests\util;
use SPC\exception\RuntimeException;
use SPC\util\UnixShell;
use SPC\exception\EnvironmentException;
use SPC\util\shell\UnixShell;
/**
* @internal
@@ -18,7 +18,7 @@ final class UnixShellTest extends TestBase
$this->markTestSkipped('This test is for Windows systems only');
}
$this->expectException(RuntimeException::class);
$this->expectException(EnvironmentException::class);
$this->expectExceptionMessage('Windows cannot use UnixShell');
new UnixShell();