|
1 | 1 | # About These Tests |
2 | 2 |
|
3 | | -Test methods for the core functionality are defined in the abstract `BaseTest` |
| 3 | +Test methods for the core functionality are defined in the abstract `BaseTest` |
4 | 4 | class. |
5 | 5 |
|
6 | | -`PsrTestLoggerTest` covers PSR-3 compatibility by testing against a wrapped |
| 6 | +`PsrTestLoggerTest` covers PSR-3 compatibility by testing against a wrapped |
7 | 7 | `Psr\Log\TestLogger`, which buffers log messages in an internal array. |
8 | 8 |
|
9 | | -`MonologTest` runs the `BaseTest` tests against a wrapped `Monolog\Logger` |
10 | | -that is configured with a `TestHandler` buffers messages similarly to the PSR3 |
| 9 | +`MonologTest` runs the `BaseTest` tests against a wrapped `Monolog\Logger` |
| 10 | +that is configured with a `TestHandler` buffers messages similarly to the PSR3 |
11 | 11 | `TestLogger`. |
12 | 12 |
|
13 | | -The Support/ directory contains test subject classes that extend our |
14 | | -implementation classes and provide helper methods to inspect the buffered |
| 13 | +The Support/ directory contains test subject classes that extend our |
| 14 | +implementation classes and provide helper methods to inspect the buffered |
15 | 15 | messages/records so we can assert stuff about them. |
16 | 16 |
|
17 | 17 | ## Improvements? |
18 | 18 |
|
19 | | -This stuff is a little tricky to test. If someone came along with a better |
20 | | -approach I'd be delighted, and offer to buy them a beverage. |
| 19 | +This stuff is a little tricky to test. If someone came along with a better |
| 20 | +approach I'd be delighted, and offer to buy them a beverage. |
21 | 21 |
|
22 | | -The biggest improvement I'd like to see would be tests that more clearly |
| 22 | +The biggest improvement I'd like to see would be tests that more clearly |
23 | 23 | resemble/demonstrate real-world usage. Ideally without relying on these test- |
24 | 24 | subject subclasses of the actual classes we want to test. |
25 | 25 |
|
|
0 commit comments