Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/ArcanistUnitTestEngine.php
<?php | <?php | ||||
/** | /** | ||||
* Manages unit test execution. | * Manages unit test execution. | ||||
*/ | */ | ||||
abstract class ArcanistUnitTestEngine extends Phobject { | abstract class ArcanistUnitTestEngine extends Phobject { | ||||
private $workingCopy; | private $workingCopy; | ||||
private $paths = array(); | private $paths = array(); | ||||
private $arguments = array(); | private $arguments = array(); | ||||
private $enableAsyncTests; | |||||
private $enableCoverage; | private $enableCoverage; | ||||
private $runAllTests; | private $runAllTests; | ||||
private $configurationManager; | private $configurationManager; | ||||
protected $renderer; | protected $renderer; | ||||
final public function __construct() {} | final public function __construct() {} | ||||
public function getEngineConfigurationName() { | public function getEngineConfigurationName() { | ||||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | final public function setArguments(array $arguments) { | ||||
$this->arguments = $arguments; | $this->arguments = $arguments; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function getArgument($key, $default = null) { | final public function getArgument($key, $default = null) { | ||||
return idx($this->arguments, $key, $default); | return idx($this->arguments, $key, $default); | ||||
} | } | ||||
final public function setEnableAsyncTests($enable_async_tests) { | |||||
$this->enableAsyncTests = $enable_async_tests; | |||||
return $this; | |||||
} | |||||
final public function getEnableAsyncTests() { | |||||
return $this->enableAsyncTests; | |||||
} | |||||
final public function setEnableCoverage($enable_coverage) { | final public function setEnableCoverage($enable_coverage) { | ||||
$this->enableCoverage = $enable_coverage; | $this->enableCoverage = $enable_coverage; | ||||
return $this; | return $this; | ||||
} | } | ||||
final public function getEnableCoverage() { | final public function getEnableCoverage() { | ||||
return $this->enableCoverage; | return $this->enableCoverage; | ||||
} | } | ||||
Show All 19 Lines |