diff options
author | Tyson Andre <tysonandre775@hotmail.com> | 2020-08-09 22:07:33 -0400 |
---|---|---|
committer | Tyson Andre <tysonandre775@hotmail.com> | 2020-08-16 09:31:38 -0400 |
commit | 0461c1574aca1487682a7f8b12bb2d9df09ebc88 (patch) | |
tree | a9b907d7f036ee865660e40d4af4e69288365a86 /ext/zip/php_zip.c | |
parent | 517c9938afe32b7e9ffa27a2413137382ac9e29b (diff) | |
download | php-git-0461c1574aca1487682a7f8b12bb2d9df09ebc88.tar.gz |
Add `run-tests.php --context [n]` option.
Mentioned in https://github.com/php/php-src/pull/5965#discussion_r467621123
This PR proposes 3 lines of context so the impact can be seen in tests.
Other `diff` programs show around 3 lines of context.
(This helps indicate exactly which position a test should be updated
to add a new expected line at)
Use the mapping for choosing order to display diffs
Properly include context in cases where the expected output had more lines than
the actual output, e.g.
```
--FILE--
A
A1
A
C
NEARBY
--EXPECTF--
A
B
A1
B
A
B
A
B
NEARBY
```
Closes GH-5968
Diffstat (limited to 'ext/zip/php_zip.c')
0 files changed, 0 insertions, 0 deletions