Re: Request for comments on Unitests for Net_FTP
| From: | Wolfram Kriesing | Date: | Thu, 25 Sep 2003 11:15:12 +0000 |
| Subject: | Re: Request for comments on Unitests for Net_FTP | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21986@lists.php.net to get a copy of this message | ||
Tobias Schlitt wrote:
<zitiere wer="Michael Wallner">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. 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 -- Wolfram ... opensource @ vision:produktion ... http://opensource.visionp.de ... authentication system .... http://sf.net/projects/authAn 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?I think there's no other reasonable option. If you want to test a DB package you would have to provide the credentials to gain access to the DBMS, too.Maybe i'll take the solution, that you have to provide the information while initializing the test or so... Do you think that's reasonable?