Skip to content

Commit 4f3bd3e

Browse files
committed
refactor: make dataProvier static
1 parent f506c71 commit 4f3bd3e

File tree

4 files changed

+426
-426
lines changed

4 files changed

+426
-426
lines changed

tests/system/AutoReview/FrameworkCodeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ public function testEachTestClassHasCorrectGroupAnnotation(string $class): void
7373
));
7474
}
7575

76-
public function provideEachTestClassHasCorrectGroupAnnotation(): iterable
76+
public static function provideEachTestClassHasCorrectGroupAnnotation(): iterable
7777
{
78-
foreach ($this->getTestClasses() as $class) {
78+
foreach (self::getTestClasses() as $class) {
7979
yield $class => [$class];
8080
}
8181
}
8282

83-
private function getTestClasses(): array
83+
private static function getTestClasses(): array
8484
{
8585
if (self::$testClasses !== []) {
8686
return self::$testClasses;

tests/system/HTTP/SiteURITest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function testConstructor(
6060
$this->assertSame($expectedTotalSegments, $uri->getTotalSegments());
6161
}
6262

63-
public function provideConstructor(): iterable
63+
public static function provideConstructor(): iterable
6464
{
65-
return array_merge($this->provideSetPath(), $this->provideRelativePathWithQueryOrFragment());
65+
return array_merge(self::provideSetPath(), self::provideRelativePathWithQueryOrFragment());
6666
}
6767

6868
public static function provideSetPath(): iterable
@@ -214,7 +214,7 @@ public static function provideSetPath(): iterable
214214
];
215215
}
216216

217-
public function provideRelativePathWithQueryOrFragment()
217+
public static function provideRelativePathWithQueryOrFragment()
218218
{
219219
return [
220220
'one/two?foo=1&bar=2' => [

0 commit comments

Comments
 (0)