# File lib/mocha/mockery.rb, line 91
91:     def on_stubbing_non_existent_method(object, symbol)
92:       if Mocha::Configuration.prevent?(:stubbing_non_existent_method)
93:         raise StubbingError.new("stubbing non-existent method: #{object.mocha_inspect}.#{symbol}", caller)
94:       end
95:       if Mocha::Configuration.warn_when?(:stubbing_non_existent_method)
96:         logger.warn "stubbing non-existent method: #{object.mocha_inspect}.#{symbol}"
97:       end
98:     end