Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistExternalLinterTestCase.php
<?php | <?php | ||||
abstract class ArcanistExternalLinterTestCase extends ArcanistLinterTestCase { | abstract class ArcanistExternalLinterTestCase extends ArcanistLinterTestCase { | ||||
final public function testVersion() { | public function testVersion() { | ||||
try { | try { | ||||
$version = $this->getLinter()->getVersion(); | $version = $this->getLinter()->getVersion(); | ||||
$this->assertTrue( | $this->assertTrue( | ||||
$version !== false, | strlen($version) > 0, | ||||
pht('Failed to parse version from command.')); | pht('Failed to parse version from command.')); | ||||
} catch (ArcanistMissingLinterException $ex) { | } catch (ArcanistMissingLinterException $ex) { | ||||
$this->assertSkipped($ex->getMessage()); | $this->assertSkipped($ex->getMessage()); | ||||
} | } | ||||
} | } | ||||
} | } |