Hi Justin, You should set some constants in the test configuration file for users to add their AWS access key and secret key, as well as to enable or disable the tests (see the configuration file for examples).
If you're setting something up and destroying it every time, you will want to use setUp() and tearDown(). The setUp() and tearDown() methods are called before and after each test, respectively. -Matt On Thu, Jun 26, 2008 at 9:10 AM, Justin Plock <[EMAIL PROTECTED]> wrote: > Hi Everyone, > I recently committed Zend_Service_Amazon_S3 to the laboratory and am > interested in any feedback anyone might be able to provide. This class is > meant to be used as a PHP stream wrapper (stream_wrapper_register()) and > that's primarily how my unit tests interface with the class as well. Since > that is the way the class was intended to be used, should I try to test the > class outside of the stream wrapper or leave the tests as-is? > > The tests do completely successfully when used with a valid AWS access key > and secret key. Since each test case needs to have a valid bucket to test > again, and I'm build and tearing down the bucket on each test, should I move > that into the setUp() method instead? > > I haven't really written PHPUnit tests before so I'm looking for > suggestions. > > Thanks. > > -Justin > >
