From: Roan Kattouw Date: Thu, 21 Dec 2017 11:59:53 +0000 (+0100) Subject: Follow-up e213462f7c61c: fix typo ("constriant" -> "constraint") X-Git-Tag: 1.31.0-rc.0~1147 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=9a6f63cd8c68cfab3ca7f34b096eef5652900072;ds=sidebyside Follow-up e213462f7c61c: fix typo ("constriant" -> "constraint") Change-Id: I6e1fd74e387af5a913301bf296fe9f6da0dd1837 --- diff --git a/tests/phpunit/includes/db/LoadBalancerTest.php b/tests/phpunit/includes/db/LoadBalancerTest.php index a7b097541a..a8e7f898a4 100644 --- a/tests/phpunit/includes/db/LoadBalancerTest.php +++ b/tests/phpunit/includes/db/LoadBalancerTest.php @@ -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; }