projects/aports·blob master · refs

23 lines · 746 B

1From: Jakub Jirutka <[email protected]>
2Date: Mon, 01 May 2017 01:33:00 +0200
3Subject: [PATCH] Fix tests failing due to extra message from built-in web server
4
5Remove messages like:
6
7 PHP 7.1.4 Development Server started at Mon May 1 00:42:39 2017
8
9from test outputs, because tests do not expect them. I have no clue what
10happens here...
11
12--- a/run-tests.php
13+++ b/run-tests.php
14@@ -2563,6 +2563,9 @@
15 // Does the output match what is expected?
16 $output = preg_replace("/\r\n/", "\n", trim($out));
17
18+ // Remove message from built-in development server.
19+ $output = preg_replace("/^PHP [0-9.]+ Development Server started at .*\n\n?/m", "", $output);
20+
21 /* when using CGI, strip the headers from the output */
22 $headers = [];
23