# File lib/mocha/mockery.rb, line 111
111:     def on_stubbing_non_existent_method(object, method)
112:       if Mocha::Configuration.prevent?(:stubbing_non_existent_method)
113:         raise StubbingError.new("stubbing non-existent method: #{object.mocha_inspect}.#{method}", caller)
114:       end
115:       if Mocha::Configuration.warn_when?(:stubbing_non_existent_method)
116:         logger.warn "stubbing non-existent method: #{object.mocha_inspect}.#{method}"
117:       end
118:     end