phpunit command line not working correctly
Posted: Wed Oct 15, 2008 9:29 am
Wow, I've actually a series of phpunit problems so bear with me. I'm using Mac OS 10.5.5, PHP 5.2.6.
--------------------------------------------------------------------------------------------
-------------------- Situation 1 -----------------------
--------------------------------------------------------------------------------------------
I tried installing PHPUnit manually by downloading and unarchiving. My PEAR packages are in
When I type "phpunit ArrayTest.php" in the terminal, it prints back the phpunit help commands.
By the way, how does phpunit finds the file to test anyway? I know they look at the filename but which directory do they look in?
--------------------------------------------------------------------------------------------
-------------------- Situation 2 -----------------------
--------------------------------------------------------------------------------------------
I've decided to try PEAR installation, again. I didn't delete the phpunit bash file from "\usr\bin" though.
I removed the PHPUnit installation earlier manually first.
The strange thing is, when I "pear list", the PHPUnit packages are not listed. I've one old version 1.3.2.
But I know they are there. So I uninstall the 1.3.2 version with "pear uninstall".
Next, I installed back with
That's where I stopped and typed this entry.
Is it possible to skip all these and test manually, with PHPUnit, via the web browser? My php files have no problem locating PHPUnit files. That's the easiest way out, I guess.
--------------------------------------------------------------------------------------------
-------------------- Situation 1 -----------------------
--------------------------------------------------------------------------------------------
I tried installing PHPUnit manually by downloading and unarchiving. My PEAR packages are in
I've followed the installation guide from phpunit.de and modified the path to the command line to "/usr/bin/php". Then I put the phpunit file into "/usr/bin"\usr\local\bin\PEAR
When I type "phpunit ArrayTest.php" in the terminal, it prints back the phpunit help commands.
By the way, how does phpunit finds the file to test anyway? I know they look at the filename but which directory do they look in?
--------------------------------------------------------------------------------------------
-------------------- Situation 2 -----------------------
--------------------------------------------------------------------------------------------
I've decided to try PEAR installation, again. I didn't delete the phpunit bash file from "\usr\bin" though.
I removed the PHPUnit installation earlier manually first.
The strange thing is, when I "pear list", the PHPUnit packages are not listed. I've one old version 1.3.2.
But I know they are there. So I uninstall the 1.3.2 version with "pear uninstall".
Next, I installed back with
Installation was ok. But when I "pear list", PHPUnit package was not shown.pear install phpunit/PHPUnit
That's where I stopped and typed this entry.
Is it possible to skip all these and test manually, with PHPUnit, via the web browser? My php files have no problem locating PHPUnit files. That's the easiest way out, I guess.