PHP code example of php-mock / php-mock-mockery
1. Go to this page and download the library: Download php-mock/php-mock-mockery 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/ */
php-mock / php-mock-mockery example snippets
namespace foo;
use phpmock\mockery\PHPMockery;
$mock = PHPMockery::mock(__NAMESPACE__, "time")->andReturn(3);
assert (3 == time());
\Mockery::close();
sh
composer