title: Fatal error: can't find PHPUnit_Extensions_Database_PDB_DefaultDatabaseConnection in testcase.php
body: <p>So I am trying to do some database testing in phpunit, and when trying to connect to the database, i get this error:</p>
  
  <pre><code>Fatal error: Class 'PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection' not found in D:\xampp\php\pear\PHPUnit\Extensions\Database\TestCase.php on line 145
  </code></pre>
  
  <p>I opened up testcase.php and checked line 145. This is line 143-146:</p>
  
  <pre><code>protected function createDefaultDBConnection(PDO $connection, $schema = '')
  {
     return new PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection($connection, $schema);
  }
  </code></pre>
  
  <p>Also, heres the getConnection function i used, incase something is wrong with it:</p>
  
  <pre><code>public function getConnection() {
      if ($this-&gt;conn === null) {
          try {
              $pdo = new PDO('mysql:host=localhost;dbname=test', 'root', '');
              $this-&gt;conn = $this-&gt;createDefaultDBConnection($pdo, 'test');
          } catch (PDOException $e) {
              echo $e-&gt;getMessage();
          }
      }
      return $this-&gt;conn;
  }
  </code></pre>