Add @covers tags to database tests
[lhc/web/wiklou.git] / tests / phpunit / includes / db / LoadBalancerTest.php
index a7b0975..5fd33dc 100644 (file)
@@ -24,6 +24,8 @@ use Wikimedia\Rdbms\LoadBalancer;
  *
  * @group Database
  * @file
+ *
+ * @covers \Wikimedia\Rdbms\LoadBalancer
  */
 class LoadBalancerTest extends MediaWikiTestCase {
        public function testWithoutReplica() {
@@ -144,9 +146,9 @@ class LoadBalancerTest extends MediaWikiTestCase {
                        $this->fail( 'Write operation should have failed!' );
                } catch ( DBError $ex ) {
                        // check that the exception message contains "Write operation"
-                       $constriant = new PHPUnit_Framework_Constraint_StringContains( 'Write operation' );
+                       $constraint = new PHPUnit_Framework_Constraint_StringContains( 'Write operation' );
 
-                       if ( !$constriant->evaluate( $ex->getMessage(), '', true ) ) {
+                       if ( !$constraint->evaluate( $ex->getMessage(), '', true ) ) {
                                // re-throw original error, to preserve stack trace
                                throw $ex;
                        }