public function main()
{
if ($this->codeCoverage && extension_loaded('xdebug') === false) {
throw new exception('AtoumTask depends on Xdebug being installed to gather code coverage information');
}
if ($this->atoumPharPath !== null) {
require_once $this->atoumPharPath;
} else {
if ($this->atoumAutoloaderPath !== null) {
require_once $this->atoumAutoloaderPath;
} else {
if (class_exists('mageekguy\\atoum\\scripts\\runner', false) === false) {
throw new exception('Unknown class mageekguy\\atoum\\scripts\\runner, consider setting atoumPharPath parameter');
}
}
}
atoum\scripts\runner::disableAutorun();
foreach ($this->getFiles() as $file) {
include_once $file;
}
return $this->execute();
}