]> khamidou — GitHub mirrors - arcanist.git/commit
[Tests] Only use concrete TestCases
authorEdward Speyer <edward@fb.com>
Sun, 22 Apr 2012 20:06:32 +0000 (13:06 -0700)
committerEdward Speyer <edward@fb.com>
Mon, 23 Apr 2012 17:40:56 +0000 (10:40 -0700)
commitdd6ffa4a13e711fdc3e920e00b18ed4ca25c7eb9
treeaa0fce4d224acb6b62c4bdf5adebe263414a9eb4
parent2831d075c0c8b4d942c6dccabe682198552c9b74
[Tests] Only use concrete TestCases

Summary:
Don't use abstract subclasses of ArcanistPhutilTestCase, only use
concrete ones.

This lets you put common functionality in an abstract BaseTestCase
(which itself is a subclass of ArcanistPhutilTestCase), then implement
concrete subclasses of the BaseTestCase.

Test Plan: Tested with a simple Base -> {Case1, Case2} setup.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2300
src/unit/engine/phutil/PhutilUnitTestEngine.php