1. Go to this page and download the library: Download meritum/testing 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/ */
meritum / testing example snippets
use Georgeff\Kernel\Environment;
use Meritum\Testing\TestingKernel;
$kernel = new TestingKernel(Environment::Testing);
$kernel->manages($httpKernel, 'http');
$kernel->manages($cliKernel, 'cli');
$kernel->boot();
$httpKernel = $kernel->get('http');
$queue = new MemoryQueue();
$kernel->instance(QueueInterface::class, $queue);
$kernel->factory(ClockInterface::class, fn() => new FrozenClock('2026-01-01'));