Skip to content

Commit

Permalink
Applies fixes for PHPCS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
theoboldalex committed Sep 3, 2023
1 parent 26bb3a5 commit 986f3e3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Runtime/LambdaRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public function test nested exceptions in the handler result in an invo
$originalException = new Exception('The original exception.');
$previousException = new RuntimeException('The previous exception.', 0, $originalException);
$currentException = new RuntimeException(
'This is an exception',
0,
'This is an exception',
0,
$previousException
);
$this->runtime->processNextEvent(function () use ($currentException) {
Expand All @@ -120,16 +120,16 @@ public function test nested exceptions in the handler result in an invo
'errorMessage' => 'The previous exception.',
'errorLocation' => [
'file' => $previousException->getFile(),
'line' => $previousException->getLine()
]
'line' => $previousException->getLine(),
],
],
[
'errorClass' => 'Exception',
'errorMessage' => 'The original exception.',
'errorLocation' => [
'file' => $originalException->getFile(),
'line' => $originalException->getLine()
]
'line' => $originalException->getLine(),
],
],
]);
}
Expand Down Expand Up @@ -450,7 +450,7 @@ private function assertInvocationErrorResult(string $errorClass, string $errorMe
], array_keys($invocationResult));
$this->assertEquals($errorClass, $invocationResult['errorType']);
$this->assertEquals($errorMessage, $invocationResult['errorMessage']);
if ($errorClass instanceof RuntimeException) {
if ($errorClass === RuntimeException::class) {
$this->assertEquals($errorLocation, $invocationResult['errorLocation']);
}
$this->assertIsArray($invocationResult['stackTrace']);
Expand Down Expand Up @@ -482,7 +482,7 @@ private function assertErrorInLogs(string $errorClass, string $errorMessage, arr
], array_keys($invocationResult));
$this->assertEquals($errorClass, $invocationResult['errorType']);
$this->assertStringContainsString($errorMessage, $invocationResult['errorMessage']);
if ($errorClass instanceof RuntimeException) {
if ($errorClass === RuntimeException::class) {
$this->assertSame($errorLocation, $invocationResult['errorLocation']);
}
$this->assertIsArray($invocationResult['stack']);
Expand Down

0 comments on commit 986f3e3

Please sign in to comment.