Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22401427
ArcanistApacheLicenseLinterTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
651 B
Referenced Files
None
Subscribers
None
ArcanistApacheLicenseLinterTestCase.php
View Options
<?php
/**
* Test cases for @{class:ArcanistApacheLicenseLinter}.
*
* @group testcase
*/
final
class
ArcanistApacheLicenseLinterTestCase
extends
ArcanistLinterTestCase
{
public
function
testApacheLicenseLint
()
{
$linter
=
new
ArcanistApacheLicenseLinter
();
$working_copy
=
ArcanistWorkingCopyIdentity
::
newFromPath
(
__FILE__
);
return
$this
->
executeTestsInDirectory
(
dirname
(
__FILE__
).
'/apachelicense/'
,
$linter
,
$working_copy
);
}
protected
function
compareTransform
(
$expected
,
$actual
)
{
$expected
=
str_replace
(
'YYYY'
,
date
(
'Y'
),
$expected
);
return
parent
::
compareTransform
(
$expected
,
$actual
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 27, 18:20 (8 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1227206
Default Alt Text
ArcanistApacheLicenseLinterTestCase.php (651 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline