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_get_quick_print.phpt ('Function snmp_get_quick_print / snmp_set_quick_print')

Script

1: <?php
2:
require_once(__DIR__.'/snmp_include.inc');
3:
4: echo 
"Checking error handling\n";
5:
var_dump(snmp_get_quick_print('noarg'));
6:
var_dump(snmp_set_quick_print('noarg'));
7:
var_dump(snmp_set_quick_print());
8:
9: echo 
"Checking working\n";
10:
var_dump(snmp_get_quick_print());
11:
snmp_set_quick_print(false);
12:
var_dump(snmp_get_quick_print());
13:
snmp_set_quick_print(true);
14:
var_dump(snmp_get_quick_print());
15:
16:
?>
17:

Expected

Checking error handling

Warning: snmp_get_quick_print() expects exactly 0 parameters, 1 given in %s on line %d
NULL

Warning: snmp_set_quick_print() expects parameter 1 to be int, %s given in %s on line %d
bool(false)

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

Output

Checking error handling

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

Diff

003+ Fatal error: Uncaught ArgumentCountError: snmp_get_quick_print() expects exactly 0 parameters, 1 given in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_get_quick_print.php:5
004+ Stack trace:
005+ #0 /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_get_quick_print.php(5): snmp_get_quick_print('noarg')
006+ #1 {main}
007+   thrown in /var/php_gcov/PHP_HEAD/ext/snmp/tests/snmp_get_quick_print.php on line 5
003- Warning: snmp_get_quick_print() expects exactly 0 parameters, 1 given in %s on line %d
004- NULL
005- 
006- Warning: snmp_set_quick_print() expects parameter 1 to be int, %s given in %s on line %d
007- bool(false)
008- 
009- Warning: snmp_set_quick_print() expects exactly 1 parameter, 0 given in %s on line %d
010- bool(false)
011- Checking working
012- bool(%s)
013- bool(false)
014- bool(true)

 

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

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