hadley/testthat — pull request #176 by krlmlr (2014-09-19 16:36:42+00:00)
Title: In-place mocking

Temporarily overwrite the memory that stores all information about a function to be mocked (formals, body, environment, attributes). Now, also mocking imported functions works as expected.

Fixes #171.