News Feed
Sections




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

O'Reilly:
Testing PHP Code with PHPUnit
December 09, 2005 @ 07:07:30

On O'Reilly's ONLamp.com site today, there's a look at how to use the wildly popular testing suite, PHPUnit, to test your code for breakage.

The release of PHP 5 in July 2004 marked a significant leap in PHP's evolution--it enabled the development of large-scale applications to leverage the productivity, maintainability, and reusability of object-oriented design. While the language features introduced in PHP 5 are vital for this, the development of large-scale applications requires additional tools and techniques to be viable.

PHPUnit is such a tool. It supports the development of object-oriented PHP applications using the concepts and methods of Agile Programming, Extreme Programming, Test-Driven Development, and Design-by-Contract Development by providing an elegant and robust framework for the creation, execution, and analysis of unit tests.

This article introduces you to the framework, shows you how to create a simple test with it (including some configuration), and working with the "fixture" of the test. If you're interested in getting into unit testing your scripts, this article is a good place to start...

0 comments voice your opinion now!
phpunit unit test phpunit unit test


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Metatesting: Extending Your Testing Tools

Sebastian Bergmann's Blog: Test Dependencies in PHPUnit 3.4

Matthew Weir O'Phinney's Blog: ZendCon: Best Practices Session

7PHP.com: Zend Certifications Tips & Tricks - Hear It From Zend Certified Engineer Eric Hogue

Matthew Weir O'Phinney's Blog: Getting XDebug working with PHPUnit for code coverage reports


Community Events





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


update introduction language api package release series install opinion community unittest deployment zendserver framework symfony interview laravel podcast library tips

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