working testable class phpunit