<?php require_once __DIR__ . '/vendor/autoload.php'; use SPE\Core\TestController; use SPE\CKlein\Reports\ConsolidatedReport; try { PHPUnit_TextUI_Command::main(false); } catch (Exception $e) { } if (TestController::isTestSuccessful()) { echo "generate consolidation report"; $consolidatedReport = new ConsolidatedReport($argv); $consolidatedReport->generate(); } else { echo "in shutdown"; TestController::shutdown(); }
<?php require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/etc/config/config.php'; use SPE\Core\TestController; define('APPLICATION_ROOT_FOLDER', realpath(dirname(__FILE__))); global $argv, $argc; $testController = new TestController(); /* $qcShutdown = function (){ TestController::shutdown(); }; register_shutdown_function($qcShutdown); */ try { $testController->setUp($argv, $argc); } catch (Exceptoin $e) { }