Rename NAME to constant

This commit is contained in:
Philipp 2023-07-26 22:42:40 +02:00
parent bbfec06a3d
commit 9ff89a970a
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
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();
}