1. Go to this page and download the library: Download kenjis/phpunit-helper 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/ */
kenjis / phpunit-helper example snippets
declare(strict_types=1);
namespace Foo\Bar\Test\Unit;
use Kenjis\PhpUnitHelper\TestDouble;
use PHPUnit\Framework;
final class BazTest extends Framework\TestCase
{
use TestDouble;
}
declare(strict_types=1);
namespace Foo\Bar\Test\Unit;
use Kenjis\PhpUnitHelper\ReflectionHelper;
use PHPUnit\Framework;
final class BazTest extends Framework\TestCase
{
use ReflectionHelper;
}
declare(strict_types=1);
namespace Foo\Bar\Test\Unit;
use Kenjis\PhpUnitHelper\DebugHelper;
use PHPUnit\Framework;
final class BazTest extends Framework\TestCase
{
use DebugHelper;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.