From 9a6f63cd8c68cfab3ca7f34b096eef5652900072 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 21 Dec 2017 12:59:53 +0100 Subject: [PATCH] Follow-up e213462f7c61c: fix typo ("constriant" -> "constraint") Change-Id: I6e1fd74e387af5a913301bf296fe9f6da0dd1837 --- tests/phpunit/includes/db/LoadBalancerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1