Use ::class instead of ::className() in tests. (#20612)

This commit is contained in:
Wilmer Arambula
2025-10-14 13:26:35 -03:00
committed by GitHub
parent 4c3deb055b
commit c960f93dfe
89 changed files with 528 additions and 528 deletions

View File

@ -138,7 +138,7 @@ class BaseObjectTest extends TestCase
public function testObjectProperty(): void
{
$this->assertInstanceOf(NewObject::className(), $this->object->object);
$this->assertInstanceOf(NewObject::class, $this->object->object);
$this->assertEquals('object text', $this->object->object->text);
$this->object->object->text = 'new text';
$this->assertEquals('new text', $this->object->object->text);