1--TEST-- 2Function snmp_get_quick_print / snmp_set_quick_print 3--CREDITS-- 4Olivier Doucet 5--SKIPIF-- 6<?php 7require_once(dirname(__FILE__).'/skipif.inc'); 8?> 9--FILE-- 10<?php 11require_once(dirname(__FILE__).'/snmp_include.inc'); 12 13echo "Checking error handling\n"; 14var_dump(snmp_get_quick_print('noarg')); 15var_dump(snmp_set_quick_print('noarg')); 16var_dump(snmp_set_quick_print()); 17 18echo "Checking working\n"; 19var_dump(snmp_get_quick_print()); 20snmp_set_quick_print(false); 21var_dump(snmp_get_quick_print()); 22snmp_set_quick_print(true); 23var_dump(snmp_get_quick_print()); 24 25?> 26--EXPECTF-- 27Checking error handling 28 29Warning: snmp_get_quick_print() expects exactly 0 parameters, 1 given in %s on line %d 30NULL 31 32Warning: snmp_set_quick_print() expects parameter 1 to be long, %s given in %s on line %d 33bool(false) 34 35Warning: snmp_set_quick_print() expects exactly 1 parameter, 0 given in %s on line %d 36bool(false) 37Checking working 38bool(%s) 39bool(false) 40bool(true) 41 42