Changeset View
Changeset View
Standalone View
Standalone View
src/configuration/__tests__/ArcanistBritishTestCase.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | private function assertCommandCompletion($expect, $input, $commands) { | ||||
| sort($result); | sort($result); | ||||
| sort($expect); | sort($expect); | ||||
| $commands = implode(', ', $commands); | $commands = implode(', ', $commands); | ||||
| $this->assertEqual( | $this->assertEqual( | ||||
| $expect, | $expect, | ||||
| $result, | $result, | ||||
| "Correction of {$input} against: {$commands}"); | pht('Correction of %s against: %s', $input, $commands)); | ||||
| } | } | ||||
| public function testArgumentCompletion() { | public function testArgumentCompletion() { | ||||
| $this->assertArgumentCompletion( | $this->assertArgumentCompletion( | ||||
| array('nolint'), | array('nolint'), | ||||
| 'no-lint', | 'no-lint', | ||||
| array('nolint', 'nounit')); | array('nolint', 'nounit')); | ||||
| Show All 21 Lines | private function assertArgumentCompletion($expect, $input, $arguments) { | ||||
| sort($result); | sort($result); | ||||
| sort($expect); | sort($expect); | ||||
| $arguments = implode(', ', $arguments); | $arguments = implode(', ', $arguments); | ||||
| $this->assertEqual( | $this->assertEqual( | ||||
| $expect, | $expect, | ||||
| $result, | $result, | ||||
| "Correction of {$input} against: {$arguments}"); | pht('Correction of %s against: %s', $input, $arguments)); | ||||
| } | } | ||||
| } | } | ||||