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_enum_print.phpt ('Function snmp_set_enum_print')

Script

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

Expected

Checking error handling

Warning: snmp_set_enum_print() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
Checking working
bool(true)
bool(true)

Output

Checking error handling

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

Diff

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

 

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

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