SNMP tests

From: Date: Sun, 18 Oct 2009 21:53:04 +0000
Subject: SNMP tests
Groups: php.qa 
Request: Send a blank email to php-qa+get-65408@lists.php.net to get a copy of this message
Hi all ! After writing a big bunch of IMAP tests (see last emails), I will then target on the 2nd less covered extension: SNMP. As I can see, there is no test for this extension (coverage today is just on extension register/shutdown). That's why I would like to know if there are special guidelines, when writing tests for an extension from scratch. Tell me if the following is the right thing to do ;) - Create folder ext/snmp/tests - Do a "extension_loaded('snmp') or die()" on all SKIPIF section (or should I handle this in a skipif.inc ?) - Keep specific instructions (hostname/community) on a snmp_include.inc - Default values will be localhost and community=public - Write a README file on how to set up an snmp server on localhost (?) - I will maybe add an MIB file to the test. What are the restrictions ? (size, etc.) Thank you all for your feedback. Olivier P.S. I will commit all my IMAP tests (PHP5.3 / PHP6) as soon as I have an svn account /or someone will commit it for me ;)

« previous php.qa (#65408) next »