Fix: class_exists() expects parameter 1 to be string, array given

Interface mocks are created fine, but when you add assertions you were
presented with an error, this adds a check to fix that