How to write unit test for PHP Script without functions?
I’m trying to write a unit test for a PHP script that does not contain any functions or classes.
It is just a plain PHP script that returns header('Location: ${url}')
when a specific condition is met.
An error occurred, but no information is displayed
PS : I am new to StackOverflow and in computer science. My question may be blurry, so please be understanding and kindly tell me what I can improve 🙂