Skip to content

Commit b4854bd

Browse files
committed
run tests with pcntl
1 parent 6ed83cb commit b4854bd

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ jobs:
116116
- "8.4"
117117
- "8.5"
118118

119+
include:
120+
- os: ubuntu-latest
121+
php-version: "8.4"
122+
add-ext: ", pcntl"
123+
119124
steps:
120125
- name: Configure Git to avoid issues with line endings
121126
if: matrix.os == 'windows-latest'
@@ -128,7 +133,7 @@ jobs:
128133
uses: shivammathur/setup-php@v2
129134
with:
130135
php-version: ${{ matrix.php-version }}
131-
extensions: ${{ env.PHP_EXTENSIONS }}
136+
extensions: "${{ env.PHP_EXTENSIONS }}${{ matrix.add-ext }}"
132137
ini-values: ${{ env.PHP_INI_VALUES }}
133138
tools: none
134139

@@ -163,6 +168,11 @@ jobs:
163168
- "8.4"
164169
- "8.5"
165170

171+
include:
172+
- os: ubuntu-latest
173+
php-version: "8.4"
174+
add-ext: ", pcntl"
175+
166176
steps:
167177
- name: Configure Git to avoid issues with line endings
168178
if: matrix.os == 'windows-latest'
@@ -186,7 +196,7 @@ jobs:
186196
uses: shivammathur/setup-php@v2
187197
with:
188198
php-version: ${{ matrix.php-version }}
189-
extensions: ${{ env.PHP_EXTENSIONS }}
199+
extensions: "${{ env.PHP_EXTENSIONS }}${{ matrix.add-ext }}"
190200
ini-values: ${{ env.PHP_INI_VALUES }}
191201
tools: none
192202

src/Framework/TestRunner/PcntlForkJobRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*/
1010
namespace PHPUnit\Framework;
1111

12-
use function array_search;
1312
use function file_get_contents;
1413
use function file_put_contents;
1514
use function function_exists;
1615
use function get_included_files;
1716
use function hrtime;
17+
use function in_array;
1818
use function ini_get;
1919
use function pcntl_fork;
2020
use function pcntl_waitpid;

0 commit comments

Comments
 (0)