Remove deprecated method className() for branch 2.2. (#19894)

This commit is contained in:
Wilmer Arambula
2023-07-16 09:45:39 -04:00
committed by GitHub
parent 9a5e2a5403
commit c9c100acd7
142 changed files with 518 additions and 526 deletions

View File

@@ -135,7 +135,7 @@ class BaseObjectTest extends TestCase
public function testObjectProperty()
{
$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);
@@ -150,7 +150,7 @@ class BaseObjectTest extends TestCase
public function testGetClassName()
{
$object = $this->object;
$this->assertSame(get_class($object), $object::className());
$this->assertSame(get_class($object), $object::class);
}
public function testReadingWriteOnlyProperty()