Emulating Jasmine's spyOn function with runkit.