Below we are going to use PHP Unit to check if a function was called inside a method. First setup your class that you are going to test. This is a simple class with two functions. mainFunction calls secondFunction. <?php namespace AzCodez\Magento...

Markdown supported · ⌘↵ to post
No responses yet.