|
RE: Zend_Test: msg#00144php.zend.framework.mvc
Hi Matthew, Sorry if I wasn't clear, what I meant was the cURL syntax for file uploading could be used, e.g.: 'photo' => '@Test.jpg', cURL interprets any @ as meaning a file upload. Also is there somewhere I can see your whole bootstrapping process explained? I am using another bootstrapping method that I think may be incompatible with Zend_Test_PHPUnit. Cheers, Steven -----Original Message----- From: 'Matthew Weier O'Phinney' [mailto:matthew-C1q0ot2/XZ0@xxxxxxxxxxxxxxxx] Sent: Thursday, 24 July 2008 1:24 AM To: fw-mvc-wwOhfgvld6hpLGFMi4vTTA@xxxxxxxxxxxxxxxx Subject: Re: [fw-mvc] Zend_Test -- Steven Brown <steven-YystjqXXAoQ/lw2aP8KBIQC/G2K4zDHf@xxxxxxxxxxxxxxxx> wrote (on Thursday, 24 July 2008, 12:50 AM +1000): > I think it would be possible to emulate $_FILES with something similar > to cURL's @ which allows for file uploads... We're (Thomas W and myself) actually running into issues testing Zend_File_Transfer. The various PHP internal functions that manipulate $_FILES actually throw errors when $_FILES has been manipulated manually. Testing using cURL is a no go, as Zend_Test does not actually perform any HTTP requests -- it simply emulates the HTTP environment to allow testing. Please file a request for file upload testing support against Zend_Test in the tracker. I'm fairly certain it will not get in to 1.6, but perhaps by 1.7 we can have a good solution available. > -----Original Message----- > From: Емил Иванов / Emil Ivanov > [mailto:emil.vladev-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx] > Sent: Thursday, 24 July 2008 12:44 AM > To: Steven Brown > Cc: Matthew Weier O'Phinney; fw-mvc-wwOhfgvld6hpLGFMi4vTTA@xxxxxxxxxxxxxxxx > Subject: Re: [fw-mvc] Zend_Test > > This will be very, very (no, VERY) useful but I think it will be very > hard. If Matthew comes up with an idea it would be great. Just an > Idea. -- Matthew Weier O'Phinney Software Architect | matthew-C1q0ot2/XZ0@xxxxxxxxxxxxxxxx Zend Framework | http://framework.zend.com/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Error in the documentation: 00144, Josh Team |
|---|---|
| Next by Date: | Re: Best practices in a thin-controller application: 00144, David Mintz |
| Previous by Thread: | Re: Zend_Testi: 00144, 'Matthew Weier O'Phinney' |
| Next by Thread: | Re: Zend_Test: 00144, Емил Иванов / Emil Ivanov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |