[General] Add PsrLoggerTestTrait and adapt unit tests

Review Request #228 — Created Oct. 30, 2013 and submitted — Latest diff uploaded

pprkut
Lunr
master
lunr
Add PsrLoggerTestTrait, which contains a test method that checks whether a logger was correctly stored as property after passing it to the constructor.
Adapt unit tests to use the trait instead of their own copy of that test. This allows us to centralize this check, handling it the same everywhere.
Overall code reduction is a bit less than I though, but still reasonable (68 lines less).
Unit tests
Loading...