1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
--TEST--
Test error operation of password_needs_rehash()
--FILE--
<?php
//-=-=-=-
var_dump(password_needs_rehash());
var_dump(password_needs_rehash(''));
var_dump(password_needs_rehash('', "foo"));
var_dump(password_needs_rehash(array(), 1));
var_dump(password_needs_rehash("", 1, "foo"));
echo "OK!";
?>
--EXPECTF--
Warning: password_needs_rehash() expects at least 2 parameters, 0 given in %s on line %d
NULL
Warning: password_needs_rehash() expects at least 2 parameters, 1 given in %s on line %d
NULL
Warning: password_needs_rehash() expects parameter 2 to be long, string given in %s on line %d
NULL
Warning: password_needs_rehash() expects parameter 1 to be string, array given in %s on line %d
NULL
Warning: password_needs_rehash() expects parameter 3 to be array, string given in %s on line %d
NULL
OK!
|