lytboris Sat, 20 Aug 2011 14:50:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=315235
Log:
more code coverage
Changed paths:
U php/php-src/trunk/ext/snmp/tests/generic_timeout_error.phpt
U php/php-src/trunk/ext/snmp/tests/snmp-object-errno-errstr.phpt
Modified: php/php-src/trunk/ext/snmp/tests/generic_timeout_error.phpt
===================================================================
--- php/php-src/trunk/ext/snmp/tests/generic_timeout_error.phpt 2011-08-20
14:21:47 UTC (rev 315234)
+++ php/php-src/trunk/ext/snmp/tests/generic_timeout_error.phpt 2011-08-20
14:50:49 UTC (rev 315235)
@@ -15,8 +15,13 @@
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
var_dump(snmpget($hostname, 'timeout_community_432', '.1.3.6.1.2.1.1.1.0',
$timeout, $retries));
+var_dump(snmpget($hostname, 'timeout_community_432',
array('.1.3.6.1.2.1.1.1.0'), $timeout, $retries));
?>
--EXPECTF--
Warning: snmpget(): No response from %s in %s on line %d
bool(false)
+
+Warning: snmpget(): No response from %s in %s on line %d
+bool(false)
+
Modified: php/php-src/trunk/ext/snmp/tests/snmp-object-errno-errstr.phpt
===================================================================
--- php/php-src/trunk/ext/snmp/tests/snmp-object-errno-errstr.phpt
2011-08-20 14:21:47 UTC (rev 315234)
+++ php/php-src/trunk/ext/snmp/tests/snmp-object-errno-errstr.phpt
2011-08-20 14:50:49 UTC (rev 315235)
@@ -42,6 +42,7 @@
var_dump(@$session->get('.1.3.6.1.2.1.1.1.0'));
var_dump($session->getErrno() == SNMP::ERRNO_GENERIC);
var_dump($session->getError());
+var_dump(@$session->get(array('.1.3.6.1.2.1.1.1.0')));
$session->close();
?>
--EXPECTF--
@@ -61,3 +62,4 @@
bool(false)
bool(true)
%string|unicode%(%d) "Fatal error: Unknown user name"
+bool(false)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php