/** * Run a coverage test across all modules */ function coverageAll() { ManifestBuilder::load_all_classes(); $this->all(true); }
function coverage() { if(hasPhpUnit()) { ManifestBuilder::load_all_classes(); $tests = ClassInfo::subclassesFor('SapphireTest'); array_shift($tests); unset($tests['FunctionalTest']); $this->runTests($tests, true); } else { echo "Please install PHPUnit using pear"; } }