pester/Pester — pull request #207 by dlwyatt (2014-09-03 03:15:09+00:00)
Title: Still more DynamicParam fixes

To retrieve the dynamic parameters for a function, the code now executes a script block which is bound to the scope of the same module as the mocked function's original location. This allows the dynamic parameters to be fetched successfully even when they reference script-scoped variables, and the caller is in a different module scope.