News Feed
Sections




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

PHPMaster.com:
More Bulletproofing with PHPUnit's Database Extension
June 09, 2012 @ 08:10:01

On PHPMaster.com today there's a new tutorial posted about improving on the PHPUnit database testing extension to allow you do other non-query (select) operations - the "C" and "UD" in the typical "CRUD".

In a previous article I discussed how you can create more robust code that queries your relational database through automated testing. But, as you know, querying is just one part of the picture. There are still other database operations, namely create, update, and delete. Just like retrieval, they too should be tested. I'll be exploring the other features of PHPUnit's Database Extensions in this article while building on your knowledge of database testing in PHP.

He helps you get the test environment, complete with the base SQL structure, and the data to test against (and XML structure). They include the sample code to create the test itself and the results when the tests are executed.

0 comments voice your opinion now!
database phpunit unittesting extension


blog comments powered by Disqus

Similar Posts

PHPClasses.org: Lately in PHP, Episode 26 - Accelerating PHP 5.4 with updated PHP cache extensions

Zend Developer Zone: Using Data Objects with PHP and DB_OO2

Sebastian Bergamnn's Blog: SeleniumTestCase Improvements in PHPUnit 3.2

Stefan Mischook's Blog: Introduction to MySQL Video Tutorial

Paul Jones\' Blog: Solar 0.18.0 released, and more about testing


Community Events





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


list composer laravel security library podcast language artisanfiles symfony conference tool series interview introduction opinion version community voicesoftheelephpant release framework

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