Beispiel #1
0
<?php

define('WWW_DIR', __DIR__ . '/tmp');
define('APP_DIR', __DIR__ . '/tmp');
define('VENDOR_DIR', __DIR__ . '/../vendor');
// include composer autoload and other needed classes
require VENDOR_DIR . '/autoload.php';
\Kdyby\TesterExtras\Bootstrap::setup(__DIR__);
function run(\Tester\TestCase $testCase)
{
    $testCase->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : NULL);
}
Beispiel #2
0
<?php

use Kdyby\TesterExtras\Bootstrap;
require __DIR__ . '/../vendor/autoload.php';
Bootstrap::setup(__DIR__);