I added PHPUnit to a project via git submodule add per the instructions in this blog post. Everything is working beautifully, except the output at the top of each execution looks like this:
PHPUnit @package_version@ by Sebastian Bergmann.
It looks like PEAR replaces that value with the version number during its install process, which doesn't help me much since I'm using Git to install the files.
Has anyone encountered this issue, and how did you solve/work around it?
You pretty answered everything in the question. It's not a bug, it's a feature - the string @package_version@ is a placeholder that is replaced upon installing the package via PEAR.
Since you are using a version intended for development (repo clone from GitHub), you should be ready for issues like this.
If you want there some specific version instead, install this specific version via PEAR.
I can think of some post-checkout hook that would replace the string with revision sha1 hash, but that wouldn't be much useful.
So, in one sentence - it's intended to be this way.
It looks like this is no longer necessary. From PHPUnit 3.7.1's changelog:
The version number is now displayed when using PHPUnit from a Composer install or Git checkout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With