2011-02-13 11:57:14 -08:00
|
|
|
<?php
|
|
|
|
|
2011-02-19 11:36:08 -08:00
|
|
|
/**
|
|
|
|
* Test cases for @{class:ArcanistApacheLicenseLinter}.
|
|
|
|
*
|
|
|
|
* @group testcase
|
|
|
|
*/
|
2012-11-02 18:09:38 -07:00
|
|
|
final class ArcanistApacheLicenseLinterTestCase
|
|
|
|
extends ArcanistArcanistLinterTestCase {
|
2011-02-13 11:57:14 -08:00
|
|
|
|
|
|
|
public function testApacheLicenseLint() {
|
|
|
|
$linter = new ArcanistApacheLicenseLinter();
|
2011-02-16 11:53:34 -08:00
|
|
|
$working_copy = ArcanistWorkingCopyIdentity::newFromPath(__FILE__);
|
|
|
|
return $this->executeTestsInDirectory(
|
2012-06-01 11:41:04 -07:00
|
|
|
dirname(__FILE__).'/apachelicense/',
|
2011-02-16 11:53:34 -08:00
|
|
|
$linter,
|
|
|
|
$working_copy);
|
2011-02-13 11:57:14 -08:00
|
|
|
}
|
|
|
|
|
2012-01-05 10:25:43 -08:00
|
|
|
protected function compareTransform($expected, $actual) {
|
|
|
|
$expected = str_replace('YYYY', date('Y'), $expected);
|
|
|
|
return parent::compareTransform($expected, $actual);
|
|
|
|
}
|
|
|
|
|
2011-02-13 11:57:14 -08:00
|
|
|
}
|