Adds better mock for SplFileObject.