Added a fix to PHPUnit className variable changed name and access level

This fixes the notices because className variable was renamed to type and made private