Stop using deprecated assertType

Change-Id: I675132ced8187c3c5d06e0c94447e5e235aa231c
This commit is contained in:
Daimona Eaytoy 2020-01-17 16:14:26 +00:00
parent 0e7bc76802
commit 9d6c43c728

View file

@ -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() );
}
}