<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>Debug parameters in Mockery\Exception\NoMatchingExpectationException: No matching handler found for</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/627 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="627"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Error:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
1) Tests\Unit\Listeners\SvActionToBackofficeLogTest::testHandleDeviceInRemoteWhitelistResult
Mockery\Exception\NoMatchingExpectationException: No matching handler found for Mockery_0_Engineroom_Lib_Backoffice::sendRequest('POST', 'notification/devices/log/5', ['short_message' =&amp;gt; [...], 'message' =&amp;gt; '', 'details' =&amp;gt; [...]]). Either the method was unexpected or its arguments matched no expected argument list for this method
&lt;/pre&gt;
&lt;p&gt;How to debug this?&lt;/p&gt;
&lt;p&gt;Dump the parameters the mock gets!:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
MyFacade::shouldReceive('sendRequest')-&amp;gt;once()
    -&amp;gt;withArgs(function () {
        var_dump(func_get_args());
    });
&lt;/pre&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/627/rev-raw/9e089fff982dced7662c9e99eca028cb6310bd00/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/627#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
