PHP code example of pmvc-plugin / unit
1. Go to this page and download the library: Download pmvc-plugin/unit 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/ */
pmvc-plugin / unit example snippets
$path = __DIR__ . '/../vendor/autoload.php';
__ . '/../../']
);
namespace PMVC\PlugIn\hell_world;
use PMVC\TestCase;
class HelloWorldTest extends TestCase
{
}
$this->dump(/*anything*/); //fwrite(STDERR, print_r(?, true));
\PMVC\plug('dev')->debug_with_cli();
\PMVC\d(/*something*/);