diff options
author | Vitor Mattos <vitor@php.rio> | 2023-03-01 09:55:48 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-03-01 09:55:48 -0300 |
commit | 76c9dbfb07993c9926d2ef55608678dcc9042840 (patch) | |
tree | ea6234bc01e430e58aebe103e8ab37c6b0878ef3 /tests | |
parent | 295c53b0ca6aece21025cbbae85bd7ef58b6fa34 (diff) |
Remove Windows support
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/bootstrap/RecordingTrait.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/integration/features/bootstrap/RecordingTrait.php b/tests/integration/features/bootstrap/RecordingTrait.php index ba02736b0..f5d2c0456 100644 --- a/tests/integration/features/bootstrap/RecordingTrait.php +++ b/tests/integration/features/bootstrap/RecordingTrait.php @@ -119,10 +119,6 @@ trait RecordingTrait { }); } - private function isWindowsPlatform() : bool { - return defined('PHP_WINDOWS_VERSION_MAJOR'); - } - /** * @return resource */ @@ -130,14 +126,11 @@ trait RecordingTrait { $cmd = 'php -S ' . $path; $stdout = tempnam(sys_get_temp_dir(), 'mockserv-stdout-'); - $fullCmd = sprintf('%s > %s 2>&1', + // We need to prefix exec to get the correct process http://php.net/manual/ru/function.proc-get-status.php#93382 + $fullCmd = sprintf('exec %s > %s 2>&1', $cmd, $stdout ); - if (!$this->isWindowsPlatform()) { - // We need to prefix exec to get the correct process http://php.net/manual/ru/function.proc-get-status.php#93382 - $fullCmd = 'exec ' . $fullCmd; - } $pipes = []; $env = null; |