Search

Home > Zend Screencasts: Video Tutorials about the Zend PHP Framework (iphone) > Writing Doctrine Unit Tests with Zend_Test
Podcast: Zend Screencasts: Video Tutorials about the Zend PHP Framework (iphone)
Episode:

Writing Doctrine Unit Tests with Zend_Test

Category: Technology
Duration: 00:00:00
Publish Date: 2009-12-01 23:40:34
Description:

Building on the Introduction to Doctrine 1.2 video, this video will show how you can easily test the persistence of Doctrine models within the Zend_Test environment.

I also touch briefly on how to setup the latest version of MAMP with phpunit.

Edit: I spoke to Guilherme Blanco (one of the core developers behind Doctrine) and he kindly brought up some things I should bear in mind for my Doctrine / Zend set.
Doctrine’s autoloader configuration can be scaled back by doing PEAR style Model Loading (new to 1.2). Also, you can use Doctrine_Core instead of Doctrine since everything has been moved to Doctrine_Core in order to follow Zend-style namespacing.

lastly, you can register your own CLI tasks as part of Doctrine’s CLI script or just write them in the scripts/doctrine.php file. With this, you could have your newly-generated models placed in the necessary folders. I’ll be experimenting with this in the coming week.

Enjoy!

flattr this!

Total Play: 0

Users also like

300+ Episodes
Zen 100+     10+