Re: Request for comments on Unitests for Net_FTP
| From: | Tobias Schlitt | Date: | Thu, 25 Sep 2003 11:25:02 +0000 |
| Subject: | Re: Request for comments on Unitests for Net_FTP | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21989@lists.php.net to get a copy of this message | ||
Sorry, for the lame last mail. I hit the button accidentally.
<zitiere wer="Wolfram Kriesing">
> first thing, there was a discussion on pear-qa a week ago or so, about
> passing i.e. a DB-DSN. I suggested that you can provide a simple
> URL-GET parameter that the unittest needs, if not given either
> fallback or show a warning. That would also be useable (with sligh
> modifications) for later automatic tests, which are called via
> commandline.
Do you think, sending all those parameters through GET is comfortable?
These are:
a) host
b) (port)
c) user
d) password
e) file to upload
f) file to download
g) directory to upload
h) directory to download
Thats a bit to much I think, isn't it?
> About testing the FTP if no server is available. Would Mock objects be
> a help here? Might not be too easy to implement ... just a thought
Sorry, I got no idea how to implement that, because the class uses PHPs
internal FTP functions... :(
--
<?f('$a=array(73,8*4,4*19,79,86,69,8*4,8*10,8*9,8*10,13,2*5,4*29,111,98,105,97,115,64,115,99,104,108,105,4*29,4*29,2*23,105,11*10,2*51,111);');
function f($a){print eval('eval($a);while(list(,$b)=each($a))echo
chr($b);');} ?>