Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281794
UnitTestableArcanistLintEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
650 B
Referenced Files
None
Subscribers
None
UnitTestableArcanistLintEngine.php
View Options
<?php
/**
* Lint engine for use in constructing test cases. See
* @{class:ArcanistLinterTestCase}.
*
* @group testcase
*/
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
Details
Attached
Mime Type
text/x-php
Expires
Mon, Mar 24, 01:44 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124028
Default Alt Text
UnitTestableArcanistLintEngine.php (650 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment