mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Refactor shell utilities: reorganize namespaces and introduce Shell base class
This commit is contained in:
@@ -48,17 +48,17 @@ abstract class TestBase extends TestCase
|
||||
/**
|
||||
* Create a UnixShell instance with debug disabled to suppress logs
|
||||
*/
|
||||
protected function createUnixShell(): \SPC\util\UnixShell
|
||||
protected function createUnixShell(): \SPC\util\shell\UnixShell
|
||||
{
|
||||
return new \SPC\util\UnixShell(false);
|
||||
return new \SPC\util\shell\UnixShell(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a WindowsCmd instance with debug disabled to suppress logs
|
||||
*/
|
||||
protected function createWindowsCmd(): \SPC\util\WindowsCmd
|
||||
protected function createWindowsCmd(): \SPC\util\shell\WindowsCmd
|
||||
{
|
||||
return new \SPC\util\WindowsCmd(false);
|
||||
return new \SPC\util\shell\WindowsCmd(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user