diff options
author | Siebrand Mazeland <siebrand@kitano.nl> | 2014-04-24 18:06:21 +0200 |
---|---|---|
committer | Siebrand <siebrand@kitano.nl> | 2014-04-24 18:26:19 +0000 |
commit | 1742e9448ce3c7b1590451c401ef09df2fa7e3f8 (patch) | |
tree | dda59db53b091eb9c7f8cd75db6f69c20f32a7e9 /tests/phpunit/includes/db/DatabaseTest.php | |
parent | 80a8a8e85c55bcdaffd77251fba1beccdd83ccd3 (diff) | |
download | mediawikicore-1742e9448ce3c7b1590451c401ef09df2fa7e3f8.tar.gz mediawikicore-1742e9448ce3c7b1590451c401ef09df2fa7e3f8.zip |
Pass phpcs-strict on some test files (6/11)
Change-Id: I5f4bc0df8183cf338ff45cacfc7279c2cd38ee04
Diffstat (limited to 'tests/phpunit/includes/db/DatabaseTest.php')
-rw-r--r-- | tests/phpunit/includes/db/DatabaseTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/phpunit/includes/db/DatabaseTest.php b/tests/phpunit/includes/db/DatabaseTest.php index 35a8e4cdbab9..7e7043965640 100644 --- a/tests/phpunit/includes/db/DatabaseTest.php +++ b/tests/phpunit/includes/db/DatabaseTest.php @@ -8,8 +8,9 @@ class DatabaseTest extends MediaWikiTestCase { /** * @var DatabaseBase */ - var $db; - var $functionTest = false; + protected $db; + + private $functionTest = false; protected function setUp() { parent::setUp(); @@ -215,7 +216,9 @@ class DatabaseTest extends MediaWikiTestCase { global $IP; $this->dropFunctions(); $this->functionTest = true; - $this->assertTrue( $this->db->sourceFile( "$IP/tests/phpunit/data/db/{$this->db->getType()}/functions.sql" ) ); + $this->assertTrue( + $this->db->sourceFile( "$IP/tests/phpunit/data/db/{$this->db->getType()}/functions.sql" ) + ); $res = $this->db->query( 'SELECT mw_test_function() AS test', __METHOD__ ); $this->assertEquals( 42, $res->fetchObject()->test ); } |