Follow-up e213462f7c61c: fix typo ("constriant" -> "constraint")
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 21 Dec 2017 11:59:53 +0000 (12:59 +0100)
committerRoan Kattouw <roan.kattouw@gmail.com>
Thu, 21 Dec 2017 11:59:53 +0000 (12:59 +0100)
Change-Id: I6e1fd74e387af5a913301bf296fe9f6da0dd1837

tests/phpunit/includes/db/LoadBalancerTest.php

index a7b0975..a8e7f89 100644 (file)
@@ -144,9 +144,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;
                        }