PHP code example of exan / moock
1. Go to this page and download the library: Download exan/moock library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
exan / moock example snippets
/** @var MyClass */
$myMock;
Mock::method($myMock->someMethod(...));
/** @var MyClass */
$myMock;
$myMock->mockMethod('someMethod');