| 1 | From: Jakub Jirutka <[email protected]>
|
| 2 | Date: Mon, 01 May 2017 01:33:00 +0200
|
| 3 | Subject: [PATCH] Fix tests failing due to extra message from built-in web server
|
| 4 |
|
| 5 | Remove messages like:
|
| 6 |
|
| 7 | PHP 7.1.4 Development Server started at Mon May 1 00:42:39 2017
|
| 8 |
|
| 9 | from test outputs, because tests do not expect them. I have no clue what
|
| 10 | happens here...
|
| 11 |
|
| 12 | |
| 13 | |
| 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 |
|