2009年12月13日星期日

Re: [fw-mvc] Usage of PHPUnit

If you're going to be using a DatabaseTestCase, this would imply (usually) that you're doing integration testing...not unit testing. In otherwords, you're testing you're system as a whole, from end to end, or you're testing larger parts of you're system working in tandem. If you're doing end to end testing, you certainly want to bootstrap zend framework as close as possible to what is normal. Otherwise, its fine just including what you need to get going.

On Sun, Dec 13, 2009 at 11:23 PM, Seth Atkins <satkins@nortel.com> wrote:

I'm curious about the typical usage for the DatabaseTestCase. Since you don't really need a front controller or application bootstrap, is the simplest usage to just require_once the necessary files, such as my Db_Table class files? Or do you load the Zend Autoloader to make things a little simpler? If so does anyone have an example of a minimalist bootstrap for DB test cases?

Also, is the typical usage just to run it from command line?

I'm fairly new to using these test tools, and Google is a little sparse on answers.

Regards,
Seth Atkins


没有评论: