Hey guys,

I met a problem when i use phpunit in drupal. I follow http://kristiannissen.wordpress.com/2009/12/08/drupal-6-phpunit-testing-... and http://patshaughnessy.net/2008/12/12/writing-your-first-phpunit-test-in-....

When i ran the test at drupal root directory, using phpunit tests/TddTests.php, it gave me the error:
Notes: This testing module is created in an existing application.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/usr/bin/misc/favicon.ico" type="image/x-icon" />
    <title>Site off-line | Drupal</title>
    <link type="text/css" rel="stylesheet" media="all" href="/usr/bin/modules/system/defaults.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/usr/bin/modules/system/system.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/usr/bin/modules/system/system-menus.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/usr/bin/modules/system/maintenance.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/usr/bin/themes/garland/style.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/usr/bin/themes/garland/minnelli/minnelli.css?0" />
<link type="text/css" rel="stylesheet" media="print" href="/usr/bin/themes/garland/print.css?0" />
        <!--[if lt IE 7]>
      <link type="text/css" rel="stylesheet" media="all" href="/usr/bin/themes/garland/fix-ie.css" />    <![endif]-->
  </head>
  <body>

<!-- Layout -->
  <div id="header-region" class="clear-block"></div>

    <div id="wrapper">
    <div id="container" class="clear-block">

      <div id="header">
        <div id="logo-floater">
        <h1><a href="/usr/bin/" title="Drupal"><img src="/usr/bin/themes/garland/minnelli/logo.png" alt="Drupal" id="logo" /><span>Drupal</span></a></h1>        </div>

      </div> <!-- /header -->

      
      <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
          <h2>Site off-line</h2>                              <div class="clear-block">
            <p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p><hr /><p><small>If you are the maintainer of this site, please check your database settings in the <code>settings.php

file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.

The mysqli error was: Unable to use the MySQLi database because the MySQLi extension for PHP is not installed. Check your <code>php.ini</code> to see how you can enable it..



I don't know why it goes to the site-off page, any suggestions appreciated!