Skip to content

Commit b951005

Browse files
committed
phpunit 11
1 parent 4667996 commit b951005

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/Client/BranchAwareClientTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testGetBranchIdWithEmptyBranchId(): void
3030
new BranchAwareClient('', ['token' => 'token', 'url' => 'url']);
3131
}
3232

33-
public function endpointsProvider(): Generator
33+
public static function endpointsProvider(): Generator
3434
{
3535
yield 'listJobs' => [
3636
'methodCall' => ['listJobs'],
@@ -112,9 +112,7 @@ public function endpointsProvider(): Generator
112112
];
113113
}
114114

115-
/**
116-
* @dataProvider endpointsProvider
117-
*/
115+
#[\PHPUnit\Framework\Attributes\DataProvider('endpointsProvider')]
118116
public function testBranchedAwareEndpointsCall(
119117
array $methodCall,
120118
string $httpMethod,

0 commit comments

Comments
 (0)