Hi all.
I have an action that handles a form, that contains file element. I'm trying
to test this action and want to simulate file uploading. But it appeared to
be not as easy as it looks.
If I need to send some usual post data without files, I usually use:
public function testNewAction()
{
$this->request->setMethod('POST')
->setPost(array('field' => 'value'));
$this->dispatch('controller/action');
....
}
And how I can submit file in a request body?
--
View this message in context:
http://www.nabble.com/Zend_Test_PHPUnit_ControllerTestCase-and-emulate-uploading-file-tp25179680p25179680.html
Sent from the Zend Framework mailing list archive at Nabble.com.