@@ -836,7 +836,7 @@ public function setGroups(array $groups): void
836
836
public function getAnnotations (): array
837
837
{
838
838
return TestUtil::parseTestMethodAnnotations (
839
- \get_class ( $ this ) ,
839
+ static ::class ,
840
840
$ this ->name
841
841
);
842
842
}
@@ -865,7 +865,7 @@ public function getName(bool $withDataSet = true): string
865
865
public function getSize (): int
866
866
{
867
867
return TestUtil::getSize (
868
- \get_class ( $ this ) ,
868
+ static ::class ,
869
869
$ this ->getName (false )
870
870
);
871
871
}
@@ -1010,7 +1010,7 @@ public function runBare(): void
1010
1010
\clearstatcache ();
1011
1011
$ currentWorkingDirectory = \getcwd ();
1012
1012
1013
- $ hookMethods = TestUtil::getHookMethods (\get_class ( $ this ) );
1013
+ $ hookMethods = TestUtil::getHookMethods (static ::class );
1014
1014
1015
1015
$ hasMetRequirements = false ;
1016
1016
@@ -1920,7 +1920,7 @@ private function setExpectedExceptionFromAnnotation(): void
1920
1920
1921
1921
try {
1922
1922
$ expectedException = TestUtil::getExpectedException (
1923
- \get_class ( $ this ) ,
1923
+ static ::class ,
1924
1924
$ this ->name
1925
1925
);
1926
1926
@@ -1955,7 +1955,7 @@ private function checkRequirements(): void
1955
1955
}
1956
1956
1957
1957
$ missingRequirements = TestUtil::getMissingRequirements (
1958
- \get_class ( $ this ) ,
1958
+ static ::class ,
1959
1959
$ this ->name
1960
1960
);
1961
1961
@@ -1999,7 +1999,6 @@ private function verifyMockObjects(): void
1999
1999
private function handleDependencies (): bool
2000
2000
{
2001
2001
if (!empty ($ this ->dependencies ) && !$ this ->inIsolation ) {
2002
- $ className = \get_class ($ this );
2003
2002
$ passed = $ this ->result ->passed ();
2004
2003
$ passedKeys = \array_keys ($ passed );
2005
2004
@@ -2040,7 +2039,7 @@ private function handleDependencies(): bool
2040
2039
}
2041
2040
2042
2041
if (\strpos ($ dependency , ':: ' ) === false ) {
2043
- $ dependency = $ className . ':: ' . $ dependency ;
2042
+ $ dependency = static ::class . ':: ' . $ dependency ;
2044
2043
}
2045
2044
2046
2045
if (!isset ($ passedKeys [$ dependency ])) {
0 commit comments