diff options
Diffstat (limited to 'SemanticMediaWiki/tests/phpunit/Util/MwDBConnectionProvider.php')
-rw-r--r-- | SemanticMediaWiki/tests/phpunit/Util/MwDBConnectionProvider.php | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/SemanticMediaWiki/tests/phpunit/Util/MwDBConnectionProvider.php b/SemanticMediaWiki/tests/phpunit/Util/MwDBConnectionProvider.php deleted file mode 100644 index ffd968c9..00000000 --- a/SemanticMediaWiki/tests/phpunit/Util/MwDBConnectionProvider.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php - -namespace SMW\Tests\Util; - -use SMW\DBConnectionProvider; -use DatabaseBase; - -/** - * @ingroup Test - * - * @license GNU GPL v2+ - * @since 2.0 - * - * @author mwjames - */ -class MwDBConnectionProvider implements DBConnectionProvider { - - /* @var DatabaseBase */ - protected $dbConnection = null; - - protected $connectionId; - - /** - * @since 2.0 - * - * @param int $connectionId - */ - public function __construct( $connectionId = DB_MASTER ) { - $this->connectionId = $connectionId; - } - - /** - * @since 2.0 - * - * @return DatabaseBase - */ - public function getConnection() { - - if ( $this->dbConnection === null ) { - $this->dbConnection = wfGetDB( $this->connectionId ); - } - - return $this->dbConnection; - } - - public function releaseConnection() {} - -} |