Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/ArcanistUnitTestEngine.php
- This file was copied from src/unit/engine/ArcanistBaseUnitTestEngine.php.
| <?php | <?php | ||||
| /** | /** | ||||
| * Manages unit test execution. | * Manages unit test execution. | ||||
| */ | */ | ||||
| abstract class ArcanistBaseUnitTestEngine { | abstract class ArcanistUnitTestEngine { | ||||
| private $workingCopy; | private $workingCopy; | ||||
| private $paths; | private $paths; | ||||
| private $arguments = array(); | private $arguments = array(); | ||||
| protected $diffID; | protected $diffID; | ||||
| private $enableAsyncTests; | private $enableAsyncTests; | ||||
| private $enableCoverage; | private $enableCoverage; | ||||
| private $runAllTests; | private $runAllTests; | ||||
| Show All 31 Lines | abstract class ArcanistUnitTestEngine { | ||||
| public function getConfigurationManager() { | public function getConfigurationManager() { | ||||
| return $this->configurationManager; | return $this->configurationManager; | ||||
| } | } | ||||
| final public function setWorkingCopy( | final public function setWorkingCopy( | ||||
| ArcanistWorkingCopyIdentity $working_copy) { | ArcanistWorkingCopyIdentity $working_copy) { | ||||
| // TODO: Remove this once ArcanistBaseUnitTestEngine is gone. | |||||
| if ($this instanceof ArcanistBaseUnitTestEngine) { | |||||
| phutil_deprecated( | |||||
| 'ArcanistBaseUnitTestEngine', | |||||
| 'You should extend from `ArcanistUnitTestEngine` instead.'); | |||||
| } | |||||
| $this->workingCopy = $working_copy; | $this->workingCopy = $working_copy; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function getWorkingCopy() { | final public function getWorkingCopy() { | ||||
| return $this->workingCopy; | return $this->workingCopy; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||