Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 13be093

Browse filesBrowse files
minor #27475 simple-phpunit: remove outdated appveryor workaround (ostrolucky)
This PR was merged into the 3.4 branch. Discussion ---------- simple-phpunit: remove outdated appveryor workaround | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Referenced issue seems to be resolved long time ago Commits ------- 11a14e0 simple-phpunit: remove outdated appveryor workaround
2 parents 143bdfc + 11a14e0 commit 13be093
Copy full SHA for 13be093

File tree

1 file changed

+1
-23
lines changed
Filter options

1 file changed

+1
-23
lines changed

‎src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
+1-23Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.