News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

UncleCode.com:
Install PHPUnit Manually without Pear for a Single Project
October 12, 2010 @ 12:39:40

From the UncleCode.com blog there's a recent post showing you how to install PHPUnit manually without PEAR if you either don't have the access or just want to install it yourself.

This tutorial is an easy start to test your PHP source code which is build using classes i.e. OOP's with/without wamp/xamp doesn't really matter. The key to PHPUnit installation is set correct include path of your PHPUnit directory and extend correct phpUnit class in test case file.

They give you a quick eight step process that'll have you up and running in no time (including the download of the latest PHPUnit version). He shows how to set the paths in a sample unit test file to point to the right location for PHPUnit based on the root directory of your application. The runner can then find the correct files and classes when you run your tests.

1 comment voice your opinion now!
install phpunit manual custom tutorial pear adhoc


blog comments powered by Disqus

Similar Posts

Mike Purcell's Blog: PHPUnit - How to Run PHPUnit Against a Specific Test

DevShed: Understanding Static Properties with PHP 5

PHPMaster.com: Setting Custom Error Messages for Zend_Form_Element

Pádraic Brady's Blog: PHPSpec Manual (Work In Progress)

Zend Developer Zone: Accepting Credit Card Payments with OXID eShop CE and AlertPay


Community Events

Don't see your event here?
Let us know!


composer introduction symfony2 extension example conference php7 opinion version series podcast release library interview community laravel framework api performance voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework