Im new with unit-testing, I know how to test a function that contains two variables inside the functions, like this example, it contains "$user_id" and "$mysqli".
function checkbrute($user_id, $mysqli) {
...............
}
And my question is, how do i test a function that looks like this? A function with no variables inside the function, it only contains the mysqli connection.
function login_check($mysqli) {
.......
}
Thanks!!
returnstatement to return the value of the two overloads to the function?$useridvariable.