mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Stop using deprecated assertType
Change-Id: I675132ced8187c3c5d06e0c94447e5e235aa231c
This commit is contained in:
parent
0e7bc76802
commit
9d6c43c728
|
@ -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() );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue