I have a simple query which does work in a plain environment, but doesn't work on PHPUnit.
Here's the code, but I don't think it will be of any use:
$a = mysql_query("SELECT id,img FROM images");
$b = mysql_fetch_array($a);
I'm connected to the database.
The error is:
mysql_fetch_array() expects parameter 1 to be resource, boolean given.
Error is pointing to the fetch command.