diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-27 19:16:35 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-09-27 19:16:35 +0200 |
commit | 5a4b9bcc9418b84f64ba96b4442b007b0ffeeb81 (patch) | |
tree | d899e4ed47a23a92cb5ebe69f9361effa67eeaff /ext/snmp | |
parent | 752012a49169fea1be1bae537bf64fe4b03ab090 (diff) | |
download | php-git-5a4b9bcc9418b84f64ba96b4442b007b0ffeeb81.tar.gz |
More ZPP warning to error related test fixes
Diffstat (limited to 'ext/snmp')
-rw-r--r-- | ext/snmp/tests/snmp2_get.phpt | 8 | ||||
-rw-r--r-- | ext/snmp/tests/snmp2_set.phpt | 8 | ||||
-rw-r--r-- | ext/snmp/tests/snmpget.phpt | 11 | ||||
-rw-r--r-- | ext/snmp/tests/snmpset.phpt | 8 |
4 files changed, 0 insertions, 35 deletions
diff --git a/ext/snmp/tests/snmp2_get.phpt b/ext/snmp/tests/snmp2_get.phpt index 12276f9952..04a8fc0347 100644 --- a/ext/snmp/tests/snmp2_get.phpt +++ b/ext/snmp/tests/snmp2_get.phpt @@ -15,8 +15,6 @@ snmp_set_quick_print(false); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); echo "Checking error handling\n"; -var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', '')); -var_dump(snmp2_get($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, '')); echo "Empty OID array\n"; var_dump(snmp2_get($hostname, $community, array(), $timeout, $retries)); @@ -48,12 +46,6 @@ var_dump(snmp2_get($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1. ?> --EXPECTF-- Checking error handling - -Warning: snmp2_get() expects parameter 4 to be int,%s given in %s on line %d -bool(false) - -Warning: snmp2_get() expects parameter 5 to be int,%s given in %s on line %d -bool(false) Empty OID array Warning: snmp2_get(): Got empty OID array in %s on line %d diff --git a/ext/snmp/tests/snmp2_set.phpt b/ext/snmp/tests/snmp2_set.phpt index 4f4d5d7a51..78b3675bb4 100644 --- a/ext/snmp/tests/snmp2_set.phpt +++ b/ext/snmp/tests/snmp2_set.phpt @@ -15,10 +15,6 @@ snmp_set_quick_print(false); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); echo "Check error handing\n"; -echo "4args (5 needed)\n"; -$z = snmp2_set($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0'); -var_dump($z); - echo "No type & no value (timeout & retries instead)\n"; $z = snmp2_set($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries); var_dump($z); @@ -142,10 +138,6 @@ var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $ol ?> --EXPECTF-- Check error handing -4args (5 needed) - -Warning: snmp2_set() expects at least 5 parameters, 3 given in %s on line %d -bool(false) No type & no value (timeout & retries instead) Warning: snmp2_set(): Bogus type '-1', should be single char, got 2 in %s on line %d diff --git a/ext/snmp/tests/snmpget.phpt b/ext/snmp/tests/snmpget.phpt index c710420965..9875f31f65 100644 --- a/ext/snmp/tests/snmpget.phpt +++ b/ext/snmp/tests/snmpget.phpt @@ -14,10 +14,6 @@ require_once(__DIR__.'/snmp_include.inc'); snmp_set_quick_print(false); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); -echo "Checking error handling\n"; -var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', '')); -var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout, '')); - echo "Checking working\n"; echo "Single OID, default timeout and retries\n"; var_dump(snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0')); @@ -49,13 +45,6 @@ var_dump(snmpget($hostname, $community, array('.1.3.6.1.2.1.1.1.0', '.1.3.6.1.2. ?> --EXPECTF-- -Checking error handling - -Warning: snmpget() expects parameter 4 to be int,%s given in %s on line %d -bool(false) - -Warning: snmpget() expects parameter 5 to be int,%s given in %s on line %d -bool(false) Checking working Single OID, default timeout and retries string(%d) "%s" diff --git a/ext/snmp/tests/snmpset.phpt b/ext/snmp/tests/snmpset.phpt index 809016444d..b1bb26c15a 100644 --- a/ext/snmp/tests/snmpset.phpt +++ b/ext/snmp/tests/snmpset.phpt @@ -15,10 +15,6 @@ snmp_set_quick_print(false); snmp_set_valueretrieval(SNMP_VALUE_PLAIN); echo "Check error handing\n"; -echo "4args (5 needed)\n"; -$z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0'); -var_dump($z); - echo "No type & no value (timeout & retries instead)\n"; $z = snmpset($hostname, $communityWrite, 'SNMPv2-MIB::sysLocation.0', $timeout, $retries); var_dump($z); @@ -142,10 +138,6 @@ var_dump((snmpget($hostname, $communityWrite, $oid2, $timeout, $retries) === $ol ?> --EXPECTF-- Check error handing -4args (5 needed) - -Warning: snmpset() expects at least 5 parameters, 3 given in %s on line %d -bool(false) No type & no value (timeout & retries instead) Warning: snmpset(): Bogus type '-1', should be single char, got 2 in %s on line %d |