News Feed
Sections




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

AjaxRay.com:
Setting up Database testing with Kohana UnitTest module
October 12, 2010 @ 13:29:38

On the AjaxRay.com blog there's a new post showing you how to set up unit testing for your Kohana v3-based application through PHPUnit.

Kohana Unittest module has made testing in Kohana v3 easy and fun. Lysender wrote a cool, straight forward post about how to set it up and running. I'll just talk here about how I have set up database testing with Kohana Unittest for my personal use. Not saying "How to set up". Because it's obviously not the best way to do this.

They walk you through the creation of the testing process - making "setup" and "tear down" SQL files, creating a "runSchema" method in a test case class and the code needed to run those setup/tear down files to refresh the database so there's no side effects of multiple tests using the same database.

0 comments voice your opinion now!
kohana unittest phpunit tutorial database setup teardown


blog comments powered by Disqus

Similar Posts

Sebastian Göttschkes' Blog: Using vsfstream (with symfony2)

The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails

Rob Allen's Blog: Akrabat_Db_Schema_Manager: Zend Framework database migrations

NetTuts.com: Building a Customer Management App Using AngularJS and Laravel

PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP


Community Events

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


podcast introduction extension release example framework opinion laravel community xdebug interview library symfony2 php7 conference series voicesoftheelephpant api version performance

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