From 9d6c43c72848f6b06fbd32b18d02f7646042d232 Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Fri, 17 Jan 2020 16:14:26 +0000 Subject: [PATCH] Stop using deprecated assertType Change-Id: I675132ced8187c3c5d06e0c94447e5e235aa231c --- tests/phpunit/MathValidatorTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/MathValidatorTest.php b/tests/phpunit/MathValidatorTest.php index ce0d499af..a6de4add5 100644 --- a/tests/phpunit/MathValidatorTest.php +++ b/tests/phpunit/MathValidatorTest.php @@ -52,16 +52,14 @@ class MathValidatorTest extends MediaWikiTestCase { public function testValidInput() { $validator = new MathValidator(); $result = $validator->validate( new StringValue( self::VADLID_TEX ) ); - // not supported by jenkins php version - // $this->assertType( \ValueValidators\Result::class, $result ); + $this->assertInstanceOf( \ValueValidators\Result::class, $result ); $this->assertTrue( $result->isValid() ); } public function testInvalidInput() { $validator = new MathValidator(); $result = $validator->validate( new StringValue( self::INVADLID_TEX ) ); - // not supported by jenkins php version - // $this->assertType( \ValueValidators\Result::class, $result ); + $this->assertInstanceOf( \ValueValidators\Result::class, $result ); $this->assertFalse( $result->isValid() ); } }