Skip to content

Commit

Permalink
Merge pull request #582 from browscap/dependabot/composer/phpunit/php…
Browse files Browse the repository at this point in the history
…unit-9.6.8

Build(deps-dev): Bump phpunit/phpunit from 9.6.7 to 9.6.8
  • Loading branch information
asgrim authored May 15, 2023
2 parents df2436b + 93b0f9b commit 3a8c6e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/BrowscapUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public function testFetchSanitizeOK(): void
public function testUpdateFailException(): void
{
$body = $this->createMock(StreamInterface::class);
$body->expects(self::once())->method('getContents')->willReturn(false);
$body->expects(self::once())->method('getContents')->willReturn('');

$response = $this->createMock(Response::class);
$response->expects(self::once())->method('getStatusCode')->willReturn(200);
Expand Down Expand Up @@ -1133,7 +1133,7 @@ public function testCheckUpdateWithoutNewerVersion(): void
$version = 6000;

$body = $this->createMock(StreamInterface::class);
$body->expects(self::once())->method('getContents')->willReturn($version);
$body->expects(self::once())->method('getContents')->willReturn((string) $version);

$response = $this->createMock(Response::class);
$response->expects(self::once())->method('getStatusCode')->willReturn(200);
Expand Down Expand Up @@ -1189,7 +1189,7 @@ public function testCheckUpdateWithoutNewerVersion(): void
public function testCheckUpdateWithNewerVersion(): void
{
$body = $this->createMock(StreamInterface::class);
$body->expects(self::once())->method('getContents')->willReturn(6001);
$body->expects(self::once())->method('getContents')->willReturn('6001');

$response = $this->createMock(Response::class);
$response->expects(self::once())->method('getStatusCode')->willReturn(200);
Expand Down

0 comments on commit 3a8c6e9

Please sign in to comment.