I know how to test classes and functions but I was wondering how to test a file and pass parameters via the console to this file.
For example I have index.php which needs 1 integer num via the console using fgets(STDIN). Can I make a PHPUnit file and test index.php ?