mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Remove deprecated method className()
for branch 2.2
. (#19894)
This commit is contained in:
@ -34,7 +34,7 @@ class DependencyTest extends TestCase
|
||||
|
||||
public function testGenerateReusableHash()
|
||||
{
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::className());
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::class);
|
||||
$dependency->data = 'dummy';
|
||||
|
||||
$result = $this->invokeMethod($dependency, 'generateReusableHash');
|
||||
@ -44,8 +44,8 @@ class DependencyTest extends TestCase
|
||||
|
||||
public function testIsChanged()
|
||||
{
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::className());
|
||||
$cache = $this->getMockForAbstractClass(Cache::className());
|
||||
$dependency = $this->getMockForAbstractClass(Dependency::class);
|
||||
$cache = $this->getMockForAbstractClass(Cache::class);
|
||||
|
||||
$result = $dependency->isChanged($cache);
|
||||
$this->assertFalse($result);
|
||||
|
Reference in New Issue
Block a user