shop"</span><span class="p">)))</span>
</code></pre>

<p><a name="perform"></a></p>
<h3 id='4-take-action-when-a-stubbed-method-is-called-strong-perform-strong' class='heading'>4. Take action when a stubbed method is called - <strong>Perform</strong></h3>

<p>All mocks has <strong>perform</strong> method (accessible both as instance method or global function), with easy to use syntax, allowing to specify closure, that will be executed upon stubbed method being called.</p>

<p>It uses same paramter wrapping 