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