Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/customfield/DifferentialUnitField.php
| Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | $groups = array_select_keys( | ||||
| ArcanistUnitTestResult::RESULT_FAIL, | ArcanistUnitTestResult::RESULT_FAIL, | ||||
| ArcanistUnitTestResult::RESULT_BROKEN, | ArcanistUnitTestResult::RESULT_BROKEN, | ||||
| ArcanistUnitTestResult::RESULT_UNSOUND, | ArcanistUnitTestResult::RESULT_UNSOUND, | ||||
| ArcanistUnitTestResult::RESULT_SKIP, | ArcanistUnitTestResult::RESULT_SKIP, | ||||
| ArcanistUnitTestResult::RESULT_PASS, | ArcanistUnitTestResult::RESULT_PASS, | ||||
| )) + $groups; | )) + $groups; | ||||
| foreach ($groups as $result => $group) { | foreach ($groups as $result => $group) { | ||||
| $count = new PhutilNumber(count($group)); | $count = phutil_count($group); | ||||
| switch ($result) { | switch ($result) { | ||||
| case ArcanistUnitTestResult::RESULT_PASS: | case ArcanistUnitTestResult::RESULT_PASS: | ||||
| $note[] = pht('%s Passed Test(s)', $count); | $note[] = pht('%s Passed Test(s)', $count); | ||||
| break; | break; | ||||
| case ArcanistUnitTestResult::RESULT_FAIL: | case ArcanistUnitTestResult::RESULT_FAIL: | ||||
| $note[] = pht('%s Failed Test(s)', $count); | $note[] = pht('%s Failed Test(s)', $count); | ||||
| break; | break; | ||||
| case ArcanistUnitTestResult::RESULT_SKIP: | case ArcanistUnitTestResult::RESULT_SKIP: | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||