mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Use ::class instead of ::className() in tests. (#20612)
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user