public function PhpUnitWarningsTest::testAssertInternalType in Drupal 9
Tests assertInternalType.
File
- core/
tests/ Drupal/ Tests/ PhpUnitWarningsTest.php, line 61
Class
- PhpUnitWarningsTest
- @coversDefaultClass \Drupal\Tests\Traits\PhpUnitWarnings @group legacy
Namespace
Drupal\TestsCode
public function testAssertInternalType() {
if (RunnerVersion::getMajor() > 8) {
$this
->markTestSkipped("In PHPUnit 9+, assertInternalType() is removed.");
}
$this
->expectDeprecation('assertInternalType() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertIsString() instead.');
$this
->assertInternalType('string', 'string');
}