PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/snmp/tests/snmp_set_oid_output_format.phpt ('Function snmp_set_oid_output_format')

Script

1: <?php
2:
require_once(__DIR__.'/snmp_include.inc');
3:
4: echo 
"Checking error handling\n";
5:
var_dump(snmp_set_oid_output_format());
6:
var_dump(snmp_set_oid_output_format(123));
7:
8: echo 
"Checking working\n";
9:
var_dump(snmp_set_oid_output_format(SNMP_OID_OUTPUT_FULL));
10:
var_dump(snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC));
11:
?>
12:

Expected

Checking error handling

Warning: snmp_set_oid_output_format() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)

Warning: snmp_set_oid_output_format(): Unknown SNMP output print format '123' in %s on line %d
bool(false)
Checking working
bool(true)
bool(true)

Output

Checking error handling

Fatal error: Uncaught ArgumentCountError: snmp_set_oid_output_format() expects exactly 1 parameter, 0 given in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php:5
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php(5): snmp_set_oid_output_format()
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php on line 5

Diff

003+ Fatal error: Uncaught ArgumentCountError: snmp_set_oid_output_format() expects exactly 1 parameter, 0 given in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php:5
004+ Stack trace:
005+ #0 /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php(5): snmp_set_oid_output_format()
006+ #1 {main}
007+   thrown in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_set_oid_output_format.php on line 5
003- Warning: snmp_set_oid_output_format() expects exactly 1 parameter, 0 given in %s on line %d
004- bool(false)
005- 
006- Warning: snmp_set_oid_output_format(): Unknown SNMP output print format '123' in %s on line %d
007- bool(false)
008- Checking working
009- bool(true)
010- bool(true)

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

Copyright © 2005-2021 The PHP Group
All rights reserved.