Rename NAME to constant

This commit is contained in:
Philipp
2023-07-26 22:42:40 +02:00
parent bbfec06a3d
commit 9ff89a970a
9 changed files with 11 additions and 11 deletions

View File

@@ -250,8 +250,8 @@ abstract class CacheTest extends MockedTest
public function testGetName()
{
if (property_exists($this->instance, '$NAME')) {
self::assertEquals($this->instance::$NAME, $this->instance->getName());
if (defined(get_class($this->instance) . '::NAME')) {
self::assertEquals($this->instance::NAME, $this->instance->getName());
} else {
self::expectNotToPerformAssertions();
}