INFRA-124 - tools/scripts/phpunit - Add error check
authorTim Otten <totten@civicrm.org>
Tue, 23 Sep 2014 13:37:31 +0000 (14:37 +0100)
committerTim Otten <totten@civicrm.org>
Tue, 23 Sep 2014 13:37:31 +0000 (14:37 +0100)
commit89771184d52cd35f31c53a5257cf9ea2a82f6652
tree10b8df6c8acd2b9a5bf1900fa1ccbba24e6fc2a9
parentc17c572d6c314e9d1e1b36632f1533d3e71f8919
INFRA-124 - tools/scripts/phpunit - Add error check

The goal is to eventually switch from the embedded phpunit
("civicrm/packages/PHPUnit") to a more standard/standalone copy.  Howeer,
this requires a different CLI (e.g.  "./scripts/phpunit CRM_Foo_BarTest" vs
"phpunit tests/phpunit/CRM/Foo/BarTest.php").

When we make the switch, we'll need some kind of transition for developers
who use the old CLI. This commit provides them with a better error message.

Note: It's tempting to automatically call the standalone phpunit rather than
printing an error; however, there are edge-cases (like unit-tests for
extensions) to consider, and (for now) it's easier to just throw an error
rather than try to think through each of them.
tools/scripts/phpunit