PHP code example of ingenerator / koharness
1. Go to this page and download the library: Download ingenerator/koharness 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/ */
ingenerator / koharness example snippets
// {my-module-root}/koharness.php
return array(
'modules' => array(
'my-module' => __DIR__,
'unittest' => __DIR__.'/modules/unittest' // Or any other way you want to specify the path to this module
),
// You can specify where to look for Kohana core - the default is {my-module-root}/vendor/kohana/core
'syspath' => '/some/path/to/kohana/core',
// You can specify where to create the harness application - the default is /tmp/koharness
'temp_dir' => '/home/me/testing'
);
shell
cd /tmp/koharness
vendor/bin/phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php