addMagicWordsByLang() -- always include english in the fallback chain
[lhc/web/wiklou.git] / tests / DatabaseTest.php
index edb785d..db46ad6 100644 (file)
@@ -1,23 +1,10 @@
 <?php
 
-require_once( 'PHPUnit.php' );
-require_once( '../includes/Defines.php' );
-require_once( '../includes/Database.php' );
-require_once( '../includes/GlobalFunctions.php' );
-
-class DatabaseTest extends PHPUnit_TestCase {
+class DatabaseTest extends PHPUnit_Framework_TestCase {
        var $db;
 
-       function DatabaseTest( $name ) {
-               $this->PHPUnit_TestCase( $name );
-       }
-
        function setUp() {
-               $this->db = new Database();
-       }
-
-       function tearDown() {
-               unset( $this->db );
+               $this->db = wfGetDB( DB_SLAVE );
        }
 
        function testAddQuotesNull() {
@@ -90,4 +77,4 @@ class DatabaseTest extends PHPUnit_TestCase {
 
 }
 
-?>
+