Re: PHPUnit tests that access a remote server

From: Date: Wed, 21 Nov 2007 15:03:39 +0000
Subject: Re: PHPUnit tests that access a remote server
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48552@lists.php.net to get a copy of this message
Jorrit, > I am in the process of fixing bugs in Net_FTP and I would like to > write some phpUnit tests along with them. For testing Net_FTP's > functionality, it is necessary to have a connection to an FTP server > that allows writing. How should such be accomplished in a test? For > myself I use a private FTP server, but is it allowed to require > others to first fill in their FTP connection details prior to using > the test? The best way is to distribute a config.php.dist file that the users need to copy to config.php and adjust the settings in there. if the file is missing, skip the tests. -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#48552) next »