News Feed
Sections




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

Mike Lively's Blog:
PHPUnit Database Extension (DBUnit Port)
September 03, 2007 @ 07:10:00

On his blog today, Mike Lively has posted about the work h's done to create a database extension for the popular unit testing software for PHP, PHPUnit.

For those that may not have read any of my previous postings on the subject the goal of this software is to extend the functionality of PHPUnit to allow using seed data to put a given database into a known state prior to executing each test. It also provides an easy mechanism to compare database contents with an expected dataset.

Mike has just completed the initial feature set for his project - more or less a port of DBUnit over to PHP. The post includes not only details about this initial release but also code that demonstrates its use. In his example, it's used to validate that a bank account has been created properly by comparng database information before and after the insert.

0 comments voice your opinion now!
phpunit dbunit database unittest extension phpunit dbunit database unittest extension


blog comments powered by Disqus

Similar Posts

Christoph Dorn's Blog: FirePHP 1.0 in 5 Steps

Zend Developer Zone: PHP Security Tip #19 (Securing Your Connection)

Jani Hartikainen's Blog: Unit testing part 2: Writing and running tests

PHPMaster.com: Using an Access Database with PHP

Ryan Mauger's Blog: Controller Testing with the FlashMessenger in Zend Framework


Community Events

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


symfony2 opinion application configure interview release series conference language library api introduction example framework laravel performance php7 community podcast voicesoftheelephpant

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