On 5/9/07, Terra Frost <terrafrost php.net> wrote:
>
> I installed PHPUnit but am unsure of how to run it
under Windows. The
> instructions (1) say to type "phpunit" at the
command line. That
> doesn't work for me. There's no *.cmd, *.bat, *.exe,
or whatever, in
> any of the paths.
>
> (1) http://www.phpunit.de/pocket_guide/3.0/en/textui.html
>
>
> Any ideas?
Terra, what PHP version are you running? I've found in my
"travels" that
PHPUnit 2.x+ should put a bat file in your pear directory,
but 1.x will
not... and you can only use 1.x with PHP4. If you're on 4,
you need this
part in the pocket guide:
http://www.phpunit.de/pocket_guide/3.0/en/appe
ndixes.phpunit1.html
I've just recently begun adding PHPUnit testing to
PhpDocumentor, if you'd
like to see a small-at-this-point layout that has tests you
can run via
phpunit.bat as well as "pear run-tests -r AllTests.php
PhpDocumentor".
Granted, I'm running PHPUnit 3.x on PHP5.
CRB
|