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