Just came to my mind: I think Frameworks like selenium [1] could be used to test the upload-components, but they need a lot of effort to test the functionality as you need to throw exceptions to the "gui" of your website and configure selenium to fail upon them. Probably a totally different angle of testing.
Just a quick idea. Regards, Uli [1] http://seleniumhq.org/ On Sat, 5 Sep 2009 10:09:03 +0200, "Thomas Weidner" <[email protected]> wrote: > Such tests can only be done indirect. > Simply look into ZF's own testbed. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > > ----- Original Message ----- > From: "mbneto" <[email protected]> > To: <[email protected]> > Sent: Saturday, September 05, 2009 12:16 AM > Subject: [fw-general] Unit testing components that work with file upload > > >> Hi, >> >> I was wondering what is the suggested approach to create tests that need >> to >> call methods that treat uploaded files. >>
