News Feed
Sections




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

Ibuildings techPortal:
Unit Testing Databases with Zend Framework
December 08, 2010 @ 12:50:43

New from the Ibuildings techPortal there's this tutorial about unit testing, specifically how to test databases using the Zend Framework (or in a ZF-based application).

Testing the database layer is a fundamental step during application development. It allows us to ensure that all data operations behave properly, without data loss or corruption. In this article, we are going to describe a simple way to test the database layer of our applications, using PHPUnit database classes, Zend Framework extensions and some custom reusable code to facilitate the process for all the domain models.

He identifies some of the main testing challenges for testing database functionality including how not to test the application instead. He talks about testing the create/read/update/delete (CRUD) and how to write your tests accordingly. Code for some sample tests are provided and a checklist of steps to follow to write and run the testing.

0 comments voice your opinion now!
unittest database zendframework tutorial


blog comments powered by Disqus

Similar Posts

Michelangelo van Dam's Blog: Unit testing after Zend Framework 1.8 webinar

Web Development Blog: Create PDF documents Online with TCPDF

WebSpeaks.in: Extract the Content of Zip file Using PHP

Jani Hartikainen's Blog: Integrating FCKeditor with Zend_Form

Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x


Community Events





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


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

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