# File lib/mocha/mockery.rb, line 109
109:     def on_stubbing_method_on_non_mock_object(object, symbol)
110:       if Mocha::Configuration.prevent?(:stubbing_method_on_non_mock_object)
111:         raise StubbingError.new("stubbing method on non-mock object: #{object.mocha_inspect}.#{symbol}", caller)
112:       end
113:       if Mocha::Configuration.warn_when?(:stubbing_method_on_non_mock_object)
114:         logger.warn "stubbing method on non-mock object: #{object.mocha_inspect}.#{symbol}"
115:       end
116:     end