Skip to content

Commit

Permalink
Make PHPStan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 9, 2023
1 parent b5f9870 commit 0528581
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CloakTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testErrorTransformedIntoARuntimeException(): void
$touch('/foo');
}

public function testErrorTransformedIntoAnInvalidArgumentException(): void
public function testErrorTransformedIntoAnErrorException(): void
{
Cloak::throwOnError();
$this->expectException(ErrorException::class);
Expand All @@ -96,14 +96,14 @@ public function testSpecificBehaviourOverrideGeneralErrorSetting(): void
$this->expectNotToPerformAssertions();

Cloak::throwOnError();
$touch = Cloak::userDeprecated(touch(...), Cloak::SILENT);
$touch = Cloak::warning(touch(...), Cloak::SILENT);
$touch('/foo');
}

public function testCaptureNothingThrowNoException(): void
{
Cloak::throwOnError();
$strtoupper = Cloak::notice(strtoupper(...));
$strtoupper = Cloak::userDeprecated(strtoupper(...));

self::assertSame('FOO', $strtoupper('foo'));
}
Expand Down

0 comments on commit 0528581

Please sign in to comment.