PHP code example of wp-media / phpunit
1. Go to this page and download the library: Download wp-media/phpunit 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/ */
wp-media / phpunit example snippets
tests_add_filter(
'muplugins_loaded',
function() {
// Do your bootstrapping work here.
}
);