Skip to content

Commit 3029689

Browse files
Merge branch '9.4' into master
2 parents 61180a8 + f2c2214 commit 3029689

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
@@ -942,7 +942,7 @@ public function setGroups(array $groups): void
942942
public function getAnnotations(): array
943943
{
944944
return TestUtil::parseTestMethodAnnotations(
945-
get_class($this),
945+
static::class,
946946
$this->name
947947
);
948948
}
@@ -971,7 +971,7 @@ public function getName(bool $withDataSet = true): string
971971
public function getSize(): int
972972
{
973973
return TestUtil::getSize(
974-
get_class($this),
974+
static::class,
975975
$this->getName(false)
976976
);
977977
}
@@ -1116,7 +1116,7 @@ public function runBare(): void
11161116
clearstatcache();
11171117
$currentWorkingDirectory = getcwd();
11181118

1119-
$hookMethods = TestUtil::getHookMethods(get_class($this));
1119+
$hookMethods = TestUtil::getHookMethods(static::class);
11201120

11211121
$hasMetRequirements = false;
11221122

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

14801480
if (strpos($id, '::') === false) {
1481-
$id = get_class($this) . '::' . $id;
1481+
$id = static::class . '::' . $id;
14821482
}
14831483

14841484
if ($this->usesDataProvider()) {
@@ -2030,7 +2030,7 @@ private function checkRequirements(): void
20302030
}
20312031

20322032
$missingRequirements = TestUtil::getMissingRequirements(
2033-
get_class($this),
2033+
static::class,
20342034
$this->name
20352035
);
20362036

0 commit comments

Comments
 (0)