Follow up on https://gist.github.com/koenpunt/cf8130bdfc432d31136b, but since method swizzling apparently doesn't work so well with Swift 3 anymore, I've now created it as Obj-C protocol.
When using in a Swift project, add it to the bridging header:
#import "UIRefreshControl+Testing.h"