Example code is showing how to rewrite class to unit testable one with Object Manager Singleton.
Unit tests is in tests directory.
info at phpclasses dot org