Skip to content

Commit

Permalink
test(phpunit): add phpunit10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-san committed Aug 3, 2023
1 parent d8de61e commit 4dd5f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AwsS3V3AdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public function failing_to_retrieve_metadata(Exception $exception, string $gette
$adapter->{$getterName}('filename.txt');
}

public function dpFailingMetadataGetters(): iterable
public static function dpFailingMetadataGetters(): iterable
{
yield "mimeType" => [UnableToRetrieveMetadata::mimeType('filename.txt'), 'mimeType'];
yield "lastModified" => [UnableToRetrieveMetadata::lastModified('filename.txt'), 'lastModified'];
Expand Down Expand Up @@ -282,7 +282,7 @@ public function streaming_reads_are_not_seekable_and_non_streaming_are(bool $str
$this->assertEquals($seekable, $metadata['seekable']);
}

public function casesWhereHttpStreamingInfluencesSeekability(): Generator
public static function casesWhereHttpStreamingInfluencesSeekability(): Generator
{
yield "not streaming reads have seekable stream" => [false, true];
yield "streaming reads have non-seekable stream" => [true, false];
Expand Down

0 comments on commit 4dd5f59

Please sign in to comment.