Page MenuHomePhorge

ArcanistUnitTestableLintEngine.php
No OneTemporary

ArcanistUnitTestableLintEngine.php

<?php
/**
* Lint engine for use in constructing test cases. See
* @{class:ArcanistLinterTestCase}.
*/
final class ArcanistUnitTestableLintEngine 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) !== null) {
return true;
}
return parent::pathExists($path);
}
public function buildLinters() {
return $this->linters;
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Mar 24, 10:06 (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1114378
Default Alt Text
ArcanistUnitTestableLintEngine.php (634 B)

Event Timeline