I took it upon myself to be a good
boy developer and get php unit tests working on my Windows 7 box. To get PHPUnit working properly with my XAMPP install, I found an excellent tutorial here: (@ Courtney Robinson’s log)
It was pure gold, though I encountered the following caveats at step 5:
As Courtney states could happen, PhpDocumentor was already installed with pear, so I had to:
pear uninstall PhpDocumentor
But then when I went to install it again I received “ERROR: unable to unpack <install-path>\PhpDocumentor-1.4.3.tgz”. I scoured the net for a bit, and found the required action to be:
pear upgrade pear (Mine was up to date however) pear upgrade Console_Getopt pear upgrade Structures_Graph pear install PhpDocumentor
Then I was back in business and able to finish step 6 in Courtney’s tutorial.
P.s. If you don’t see the PHP tab when you go to Tools->Options (as mentioned in step 6) you likely have the full install of NetBeans 7 but have not opened or created a PHP project yet. You will need to click File-> New Project, pick PHP, click Next; then you can click Cancel. This will initialize the PHP references in Netbeans and provide the PHP context tab when viewing the Options screen.