Example #1
0
 /**
  * Run a coverage test across all modules
  */
 function coverageAll()
 {
     ManifestBuilder::load_all_classes();
     $this->all(true);
 }
Example #2
0
	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";
		}
	}