Skip to content

Commit f2c2214

Browse files
Merge branch '8.5' into 9.4
2 parents 1bc1a6f + 4d5ec15 commit f2c2214

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Framework/TestCase.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ public function setGroups(array $groups): void
941941
public function getAnnotations(): array
942942
{
943943
return TestUtil::parseTestMethodAnnotations(
944-
get_class($this),
944+
static::class,
945945
$this->name
946946
);
947947
}
@@ -970,7 +970,7 @@ public function getName(bool $withDataSet = true): string
970970
public function getSize(): int
971971
{
972972
return TestUtil::getSize(
973-
get_class($this),
973+
static::class,
974974
$this->getName(false)
975975
);
976976
}
@@ -1115,7 +1115,7 @@ public function runBare(): void
11151115
clearstatcache();
11161116
$currentWorkingDirectory = getcwd();
11171117

1118-
$hookMethods = TestUtil::getHookMethods(get_class($this));
1118+
$hookMethods = TestUtil::getHookMethods(static::class);
11191119

11201120
$hasMetRequirements = false;
11211121

@@ -1477,7 +1477,7 @@ public function sortId(): string
14771477
$id = $this->name;
14781478

14791479
if (strpos($id, '::') === false) {
1480-
$id = get_class($this) . '::' . $id;
1480+
$id = static::class . '::' . $id;
14811481
}
14821482

14831483
if ($this->usesDataProvider()) {
@@ -2029,7 +2029,7 @@ private function checkRequirements(): void
20292029
}
20302030

20312031
$missingRequirements = TestUtil::getMissingRequirements(
2032-
get_class($this),
2032+
static::class,
20332033
$this->name
20342034
);
20352035

0 commit comments

Comments
 (0)