Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Make more data providers static
  fix merge
  Mutate remaining data providers to static ones
  • Loading branch information
derrabus committed Sep 20, 2024
2 parents 02dc235 + 133ac04 commit e30ef73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function testConstructorShouldThrowExceptionForMissingOptions(array $opti
new MongoDbSessionHandler($this->manager, $options);
}

public function provideInvalidOptions()
public static function provideInvalidOptions(): iterable
{
yield 'empty' => [[]];
yield 'collection missing' => [['database' => 'foo']];
Expand Down
4 changes: 2 additions & 2 deletions Tests/Test/Constraint/ResponseHeaderLocationSameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testConstraintSuccess(string $requestUrl, ?string $location, str
self::assertTrue($constraint->evaluate($response, '', true));
}

public function provideSuccessCases(): iterable
public static function provideSuccessCases(): iterable
{
yield ['http://example.com', 'http://example.com', 'http://example.com'];
yield ['http://example.com', 'http://example.com', '//example.com'];
Expand Down Expand Up @@ -112,7 +112,7 @@ public function testConstraintFailure(string $requestUrl, ?string $location, str
$constraint->evaluate($response);
}

public function provideFailureCases(): iterable
public static function provideFailureCases(): iterable
{
yield ['http://example.com', null, 'http://example.com'];
yield ['http://example.com', null, '//example.com'];
Expand Down

0 comments on commit e30ef73

Please sign in to comment.