]> khamidou — GitHub mirrors - arcanist.git/commit
Add some tests for subclasses
authorJoshua Spence <josh@joshuaspence.com>
Mon, 15 Jun 2015 10:00:54 +0000 (20:00 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 15 Jun 2015 10:01:30 +0000 (20:01 +1000)
commitfe4856277c6c88470ffee144a69e81405cbd167e
tree905780bfd92ad9ebab8c922463ae99e4ee75084b
parent956bfa701c3606155a6f2b2374b75d4a1f4380a0
Add some tests for subclasses

Summary: Add some tests to ensure that `ArcanistXHPASTLinterRule` subclasses are properly implemented. This should catch issues such as two linter rules having the same `ID` value. See D13272 for a similar change.

Test Plan: `arc unit`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13274
src/__phutil_library_map__.php
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/ArcanistXHPASTLinterRule.php
src/lint/linter/xhpast/__tests__/ArcanistXHPASTLinterRuleTestCase.php [new file with mode: 0644]