To run file simply type: php payroll.php To run tests, enter: phpunit --bootstrap autoload.php tests/ Note: using php version 7.0 and phpunit 5.7.14