Netbeans PHPUnit Mac Installation.
Follow these 5 simple steps.
#First, we need to install pear, so get the go-pear.php file.
1. curl http://pear.php.net/go-pear > go-pear.php
# Install pear
2. sudo php -q go-pear.php
## Be sure to choose the install path as /usr/local, instead of the default one.
#Now, we go to install PHPUnit. But, before that, we need to tell pear which channel to download from.
3. pear channel-discover pear.phpunit.de
#One more channel
4. sudo pear channel-discover pear.symfony-project.com
#Another one.
5. sudo pear channel-discover components.ez.no
#Done. :)
6. type phpunit in the terminal and it should list the options.
Once the installation is done, we can configure to make this work in NetBeans as follows.
1. Goto preferences in NetBeans. (Cmd+,)
2. In the php tab, browse for phpunit (present in /usr/local/bin )
3. Now, rightclick on the class , select Tools->PHPUnit...Boom, TestClasses are created.!
















