News Feed
Sections




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

PHPBuilder.com:
Use PHPUnit to Implement Unit Testing in Your PHP Development
May 27, 2010 @ 09:32:33

On PHPBuilder.com today there's a new tutorial introducing PHPUnit, the popular unit testing framework (based off the ideas from JUnit). Jason shows how you can use it to make a more robust and easier to maintain application.

We are creating web applications, with one important difference between the two being that the latter are built using a rigorous process, and with that, a rigorous testing program. [...] The PHP community has long had a great testing utility at their disposal known as PHPUnit, and in this tutorial I offer a brief introduction to its benefits.

He shows how to get it installed (via PEAR), writing up a first unit test to check for the contents of a string (making HTML) and executing the test to verify the outcome. He aso mentions something interesting you can use when you need to send a lot of information over to a test - providers.

1 comment voice your opinion now!
phpunit unittest tutorial beginner


blog comments powered by Disqus

Similar Posts

DevShed: Factoring Content Boxes with the Factory Pattern in PHP 5

PHPit.net: A beginners introduction to PHP\'s file functions

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6

VilkomenJuist.nl: Laravel 4 and NodeJs/Redis pub/sub realtime notifications

SitePoint PHP Blog: Introduction to Gearman - Multitasking in PHP


Community Events

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


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

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