Refactored tests FormatResourceListener and CollectionFormatterTest.
Applied PSR-2 fixer to test classes.