{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"Debug parameters in Mockery\\Exception\\NoMatchingExpectationException: No matching handler found for","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/627 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"627\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Error:<\/p>\n<pre class=\"literal-block\">\n1) Tests\\Unit\\Listeners\\SvActionToBackofficeLogTest::testHandleDeviceInRemoteWhitelistResult\nMockery\\Exception\\NoMatchingExpectationException: No matching handler found for Mockery_0_Engineroom_Lib_Backoffice::sendRequest('POST', 'notification\/devices\/log\/5', ['short_message' =&gt; [...], 'message' =&gt; '', 'details' =&gt; [...]]). Either the method was unexpected or its arguments matched no expected argument list for this method\n<\/pre>\n<p>How to debug this?<\/p>\n<p>Dump the parameters the mock gets!:<\/p>\n<pre class=\"literal-block\">\nMyFacade::shouldReceive('sendRequest')-&gt;once()\n    -&gt;withArgs(function () {\n        var_dump(func_get_args());\n    });\n<\/pre>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/627\/rev-raw\/9e089fff982dced7662c9e99eca028cb6310bd00\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/627#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
