Making assertions for class testing class type mapping to use PHPUnit's assertInstanceOf method