PHP - Issues
No such file or directory
Message: No such file or directory #0 /home/patrick/dev/project/my/mydatabase.php(9): mysqli->__construct()
No such file or directory is actually a failed to connect to database error!
global variable is
Call to a member function safe_query() on null:
global $database; $database->safe_query("ROLLBACK");
To solve the issue, I added the following to
site_config.php should not be added to the GIT repository.
This StackOverflow article may help, global variables are null when using PHPUnit