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