Changeset View
Changeset View
Standalone View
Standalone View
src/unit/ArcanistUnitTestResult.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Represents the outcome of running a unit test. | * Represents the outcome of running a unit test. | ||||
| * | |||||
| * @group unit | |||||
| */ | */ | ||||
| final class ArcanistUnitTestResult { | final class ArcanistUnitTestResult { | ||||
| const RESULT_PASS = 'pass'; | const RESULT_PASS = 'pass'; | ||||
| const RESULT_FAIL = 'fail'; | const RESULT_FAIL = 'fail'; | ||||
| const RESULT_SKIP = 'skip'; | const RESULT_SKIP = 'skip'; | ||||
| const RESULT_BROKEN = 'broken'; | const RESULT_BROKEN = 'broken'; | ||||
| const RESULT_UNSOUND = 'unsound'; | const RESULT_UNSOUND = 'unsound'; | ||||
| ▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | public function setUserData($user_data) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getUserData() { | public function getUserData() { | ||||
| return $this->userData; | return $this->userData; | ||||
| } | } | ||||
| /** | /** | ||||
| * "extra data" allows an implementation to store additional | * "extra data" allows an implementation to store additional key/value | ||||
| * key/value metadata along with the result of the test run. | * metadata along with the result of the test run. | ||||
| */ | */ | ||||
| public function setExtraData(array $extra_data = null) { | public function setExtraData(array $extra_data = null) { | ||||
| $this->extraData = $extra_data; | $this->extraData = $extra_data; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getExtraData() { | public function getExtraData() { | ||||
| return $this->extraData; | return $this->extraData; | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||