Added PHP 5.5 to Travis config.
Added singleton factory to DistpacherTests.