You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
PHPUnit Immediate Exception Printer
2
-
===================================
1
+
PHPUnit Immediate Printer
2
+
=========================
3
3
4
4
[![Latest version][Version image]][Releases]
5
5
[![Total downloads][Downloads image]][Downloads]
6
6
[![Build status][Build image]][Build]
7
7
[![Test coverage][Coverage image]][Coverage]
8
8
[![Code style][Style image]][Style]
9
9
10
-
Immediate Exception Printer is a [PHPUnit][PHPUnit] plug-in that prints out exceptions and assertion failures immediately during a test run. Normally PHPUnit keeps error details secret until the end of the test run, but sometimes we don't want to wait that long. With Immediate Exception Printer, all secrets are immediately revealed, with a few extra benefits, too.
10
+
PHPUnit Immediate Printer (Pip) is a [PHPUnit][] extension that prints exceptions and assertion failures immediately during a test run. Normally PHPUnit keeps failure details secret until the end of the test run, but sometimes we don't want to wait that long. With Pip, all secrets are immediately revealed, with a few extra benefits, too.
11
11
12
12
## Benefits
13
13
@@ -28,31 +28,29 @@ This printer makes no attempt to modify the test summary; only runtime output is
28
28
29
29
1. Add the dependency to your Composer file's `require-dev` section.
@@ -69,7 +67,7 @@ To test the output of a particular capability we run `CapabilitiesTest` with the
69
67
One challenge we must overcome is verifying coloured output including ANSI escape sequences. To see these escape sequences we can pipe the output of a specific capability test to `cat -v` as shown in the following example.
70
68
71
69
```bash
72
-
vendor/bin/phpunit -c test --colors=always test/CapabilitiesTest --filter ::testSuccess$ | cat -v
70
+
vendor/bin/phpunit -c test --colors=always test/CapabilitiesTest.php --filter ::testSuccess$ | cat -v
73
71
```
74
72
75
73
The output from `cat` will print the "escape" character as `^[`. We must replace each occurrence of this character sequence with the literal escape character (ASCII character 27). The easiest way to obtain the real escape character is to just copy it from an existing functional test.
0 commit comments