dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Add comment to unused EDIT_DEFER_UPDATES in Defines.php"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
db
/
DatabaseSqliteTest.php
diff --git
a/tests/phpunit/includes/db/DatabaseSqliteTest.php
b/tests/phpunit/includes/db/DatabaseSqliteTest.php
index
9307b0c
..
0db7af9
100644
(file)
--- a/
tests/phpunit/includes/db/DatabaseSqliteTest.php
+++ b/
tests/phpunit/includes/db/DatabaseSqliteTest.php
@@
-482,4
+482,12
@@
class DatabaseSqliteTest extends MediaWikiTestCase {
$this->assertTrue( $db->close(), "closing database" );
}
+
+ public function testToString() {
+ $db = DatabaseSqlite::newStandaloneInstance( ':memory:' );
+
+ $toString = (string)$db;
+
+ $this->assertContains( 'SQLite ', $toString );
+ }
}