]> khamidou — GitHub mirrors - arcanist.git/commit
Perform case-insensitive check for PHPUnit test finder to not return original file
authorEric Stern <eric@ericstern.com>
Thu, 19 Sep 2013 22:14:44 +0000 (15:14 -0700)
committerepriestley <git@epriestley.com>
Thu, 19 Sep 2013 22:14:58 +0000 (15:14 -0700)
commitbfcb3cfcd0a567b2d1d211d8d6e6448a8779e047
tree9a005c2bf3e1ab01b05851aa4d1b85150c6202b7
parentbfbb16f32210767eb979f254a5aa5d085daba94a
Perform case-insensitive check for PHPUnit test finder to not return original file

Summary: PhpunitTestEngine incorrectly included some source files as tests when run on a case-insensive fiesystem. This fixes that behavior. It could introduce problems for case-sensive users, but it's extremely unlikely to be an issue in practice (who would put a file in both Tests/ and tests/ and expect different results for the two?)

Test Plan: arc unit before and after change on OS X. Stubs and autoloaders in .../tests/... directories are no longer picked up.

Reviewers: epriestley

Reviewed By: epriestley

CC: aurelijus, Korvin, aran
Differential Revision: https://secure.phabricator.com/D7048
src/unit/engine/PhpunitTestEngine.php