News Feed
Sections




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

Sebastian Bergmann's Blog:
Improved Skeleton Generator in PHPUnit 3
September 26, 2006 @ 08:12:38

Sebastian Bergmann has posted another update about the upcoming PHPUnit 3 project, this time concrening the improved skeleton generator that's been put in place.

PHPUnit can help you write your tests by analyzing the code of an existing class and generating a skeleton test-case class for it. With PHPUnit 3 this feature will be more powerful as it now supports @test annotations in the class source.

To illustrate the point, he gives a bit of code for a calculator class with a single add() method. When the skeleton generator gets its hands on it though, it spits back out a complete testing suite with predefined functions ready for your assertions (and completely valid, even without them).

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


blog comments powered by Disqus

Similar Posts

Sebastian Bergmann's Blog: AJAX-Based Test Runner for PHPUnit

PHPMaster.com: Bulletproofing Database Interactions with PHPUnit's Database Extension

Sebastian Bergmann's Blog: Even More Work on Reporting in PHPUnit 3

Chris Hartjes' Blog: Snakes and Elephants Playing Nice Together: PHPUnit and py.test with Hudson

NetTuts.com: Refactoring Legacy Code: Part 6 - Attacking Complex Methods


Community Events





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


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

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