Re: Request for comments on Unitests for Net_FTP
| From: | Tobias Schlitt | Date: | Thu, 25 Sep 2003 09:02:14 +0000 |
| Subject: | Re: Request for comments on Unitests for Net_FTP | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21979@lists.php.net to get a copy of this message | ||
<zitiere wer="Stefan Neufeind">
>> Ideed, that should be! ;) But when I set up the Unitest, I have to use
>> pseudo credentials and files for that. The user has to rewirte the
>> whole class for his own use... Thats not the meaning of a Unitest
>> regularly, or? Is there another solution for that?
> Your unit-tests could show an html-form that the user needs to fill-
> out and submit for the unit-tests to actually start. Would that be an
> idea?
An idea, of course. But I have to handle the correctness of the inserted
data before testing the class. Thats a bit ugly I think.... Don't you?
--
<?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);');} ?>