2008年7月23日星期三

RE: [fw-mvc] Zend_Test

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@zend.com]
Sent: Thursday, 24 July 2008 1:24 AM
To: fw-mvc@lists.zend.com
Subject: Re: [fw-mvc] Zend_Test

-- Steven Brown <steven@newbeachmedia.com> 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@gmail.com]
> Sent: Thursday, 24 July 2008 12:44 AM
> To: Steven Brown
> Cc: Matthew Weier O'Phinney; fw-mvc@lists.zend.com
> 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@zend.com
Zend Framework | http://framework.zend.com/

没有评论: