Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3a9850

Browse files
author
fruty
committed
CS. moved asserts from multiline to singleline.
1 parent 8df49c6 commit f3a9850

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,14 @@ public function __construct()
2222
};
2323

2424
$handlerException = new HandlerFailedException($envelope, [$exception]);
25+
$originalException = $handlerException->getNestedExceptions()[0];
2526

2627
$this->assertIsInt($handlerException->getCode(), 'Exception codes must converts to int');
2728

2829
$this->assertSame(0, $handlerException->getCode(), 'String code (HY000) converted to int must be 0');
2930

30-
$this->assertIsString(
31-
$handlerException->getNestedExceptions()[0]->getCode(),
32-
'Original exception code still with original type (string)'
33-
);
31+
$this->assertIsString($originalException->getCode(), 'Original exception code still with original type (string)');
3432

35-
$this->assertSame(
36-
$exception->getCode(),
37-
$handlerException->getNestedExceptions()[0]->getCode(),
38-
'Original exception code is not modified'
39-
);
33+
$this->assertSame($exception->getCode(), $originalException->getCode(), 'Original exception code is not modified');
4034
}
4135
}

0 commit comments

Comments
 (0)