Hy Ralf,

Why should it now work when you catch the error in your extended adapter test class ? This works in every scenario with every test as you test always with your extended adapter test class and not the adapter itself.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Ralf Eggert" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, August 21, 2008 4:14 PM
Subject: Re: [fw-general] How to simulate a file upload to test form


Hi Thomas,

Also the isValid method will still throw an error because receive just calls
isValid.
Best would be to catch the Attacker error and return a true instead of this
error, but let all other errors pass.

Ok, this might work for my form test. But I also have a test for a
controller which runs the isValid() method of my form. This test needs a
upload simulation because the controller writes some data to the
database and renames the uploaded file. To test this I need a valid form
and cannot catch the attacker error.

Thanks and best regards,

Ralf

Reply via email to