News Feed
Sections




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

SitePoint.com:
Introduction to Unit Testing in PHP with PHPUnit
December 17, 2010 @ 12:35:47

On SitePoint there's a new tutorial that introduces you to some of the basics of unit testing your PHP application with the help of the popular testing tool PHPUnit. (Disclaimer: I am the author of this article).

It's a familiar situation: you've been developing on an application for hours and you feel like you've been going round in circles. You fix one bug and another pops up. [...] You've been there, right? You've had these same frustrations with all your applications, and have sat back and thought that there has to be a better way. Well, you're in luck! There is, and it's not as difficult as you might think it.

The article starts by debunking a few of the myths about unit testing like the time it takes and why it's better than just "clicking around". It shows the installation of the tool (via the PEAR installer) and how to write your first test cases based on a sample class.

0 comments voice your opinion now!
phpunit unittest tutorial introduction


blog comments powered by Disqus

Similar Posts

Codewalkers.com: New Tutorial - Coding \"Best Practices\" - or at least \"Better Practices\"

PHPBuilder.com: The ABC's of PHP - Part 10 - The Final Installment (XML & Regex)

DevShed: Creating a Blog Application with Interpreter Classes with PHP 5

Manuel Pichler's Blog: Howto create custom rule sets for PHPMD

Robert Basic's Blog: Debugging two PHP projects in Netbeans at the same time


Community Events

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


extension framework laravel laravel5 language release example interview library podcast unittest version community voicesoftheelephpant series api introduction wordpress opinion php7

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