cli.php

#!/usr/bin/env php
<?php

namespace Taeluf\Tester;

require_once(__DIR__.'/Utility.php');
require_once(__DIR__.'/ExceptionCatcher.php');
require_once(__DIR__.'/Tester.php');
require_once(__DIR__.'/CliClass.php');

$dir = getcwd();
$cli = new \Taeluf\Tester\Cli($dir);
if (!$cli->loadConfig()){
    echo "Couldn't load config...";
    return;
}
$cli->loadProjectConfig();
$testSet = $cli->runTests();
echo $cli->cliOutput($testSet);
$html = $cli->htmlOutput($testSet);
$cli->writeTestResults($html);