[General] Add PsrLoggerTestTrait and adapt unit tests

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

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
dinos
  1. Ship It!
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master
Loading...