Routes should be tested independently of everything else. You should be testing your controllers and actions. Routes are just smoke and mirrors.
I personally run a seperate bootstrap file for my automated tests. It's essentially the same as index.php, but without the ->run() call on the bootstrapper, and with the environment forced to 'testing'. if you're using PHPUnit, you can set a bootstrap file in the configuration: http://pastebin.com/Cu6Bcn1r PHPUnit will run it before each test. On Wed, Mar 24, 2010 at 1:48 PM, Giorgio Sironi <[email protected]> wrote: > On Wed, Mar 24, 2010 at 6:32 PM, Joseph Crawford > <[email protected]> wrote: >> >> Jake, >> >> I am not intentionally stopping Zend_Application from loading the bootstrap. >> >> As you mentioned I do have a bootstrap.php file that is the same as your >> TestHelper.php it's my index.php from the app except it does not call >> ->bootstrap()->run(); > > It is in Bootstrap::run() that the object sets itself with > setParam('bootstrap', $this). Not sure why. > > -- > Giorgio Sironi > Piccolo Principe & Web Engineer > http://giorgiosironi.blogspot.com > http://twitter.com/giorgiosironi > -- A.J. Brown Software Engineer, ZCE blog : http://ajbrown.org talk : (937) 540-0099 chat : IntypicaAJ
