Page MenuHomeSealhub

UnitTestableArcanistLintEngine.php
No OneTemporary

Authored By
Unknown
Size
628 B
Referenced Files
None
Subscribers
None

UnitTestableArcanistLintEngine.php

<?php
/**
* Lint engine for use in constructing test cases. See
* @{class:ArcanistLinterTestCase}.
*/
final class UnitTestableArcanistLintEngine extends ArcanistLintEngine {
protected $linters = array();
public function addLinter($linter) {
$this->linters[] = $linter;
return $this;
}
public function addFileData($path, $data) {
$this->fileData[$path] = $data;
return $this;
}
public function pathExists($path) {
if (idx($this->fileData, $path)) {
return true;
}
return parent::pathExists($path);
}
protected function buildLinters() {
return $this->linters;
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Nov 27, 16:09 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1224443
Default Alt Text
UnitTestableArcanistLintEngine.php (628 B)

Event Timeline