Skip to content

Commit 3bcc1dc

Browse files
committed
simple-phpunit: remove outdated appveryor workaround
1 parent f266514 commit 3bcc1dc

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

bin/simple-phpunit

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,6 @@ if ($components) {
188188
}
189189
}
190190

191-
// Fixes for colors support on appveyor
192-
// See https://github.com/appveyor/ci/issues/373
193-
$colorFixes = array(
194-
array("S\033[0m\033[0m\033[36m\033[1mS", "E\033[0m\033[0m\033[31m\033[1mE", "I\033[0m\033[0m\033[33m\033[1mI", "F\033[0m\033[0m\033[41m\033[37mF"),
195-
array("SS", "EE", "II", "FF"),
196-
);
197-
$colorFixes[0] = array_merge($colorFixes[0], $colorFixes[0]);
198-
$colorFixes[1] = array_merge($colorFixes[1], $colorFixes[1]);
199-
200191
while ($runningProcs) {
201192
usleep(300000);
202193
$terminatedProcs = array();
@@ -212,20 +203,7 @@ if ($components) {
212203
foreach ($terminatedProcs as $component => $procStatus) {
213204
foreach (array('out', 'err') as $file) {
214205
$file = "$component/phpunit.std$file";
215-
216-
if ('\\' === DIRECTORY_SEPARATOR) {
217-
$h = fopen($file, 'rb');
218-
while (false !== $line = fgets($h)) {
219-
echo str_replace($colorFixes[0], $colorFixes[1], preg_replace(
220-
'/(\033\[[0-9]++);([0-9]++m)(?:(.)(\033\[0m))?/',
221-
"$1m\033[$2$3$4$4",
222-
$line
223-
));
224-
}
225-
fclose($h);
226-
} else {
227-
readfile($file);
228-
}
206+
readfile($file);
229207
unlink($file);
230208
}
231209

0 commit comments

Comments
 (0)