Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: unit/DbTest.php
- ===================================================================
- --- unit/DbTest.php (revision 10872)
- +++ unit/DbTest.php (working copy)
- @@ -23,4 +23,11 @@
- $db = api_db::factory('testdb_nodsn');
- $this->assertIdentical($db, false);
- }
- +
- + public function testOverwriteInstance() {
- + $db = api_db::factory('testdb');
- + api_db::setInstance('othertestdb', $db);
- + $db2 = api_db::factory('othertestdb');
- + $this->assertIdentical($db, $db2);
- + }
- }
Add Comment
Please, Sign In to add comment