Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22392186
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
661 B
Referenced Files
None
Subscribers
None
ArcanistApacheLicenseLinterTestCase.php
View Options
<?php
/**
* Test cases for @{class:ArcanistApacheLicenseLinter}.
*
* @group testcase
*/
final
class
ArcanistApacheLicenseLinterTestCase
extends
ArcanistArcanistLinterTestCase
{
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, 15:45 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1223936
Default Alt Text
ArcanistApacheLicenseLinterTestCase.php (661 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline