mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-15 03:38:01 +01:00
Remove deprecated method className() for branch 2.2. (#19894)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user