From d52515ab1b460410c3cfb441aad7b61f95041a8c Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 26 Sep 2019 09:59:37 +0200 Subject: [PATCH] Fix CS --- .../Messenger/Tests/Exception/HandlerFailedExceptionTest.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php b/src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php index 3b98686f67..e007c517ee 100644 --- a/src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php +++ b/src/Symfony/Component/Messenger/Tests/Exception/HandlerFailedExceptionTest.php @@ -11,7 +11,6 @@ class HandlerFailedExceptionTest extends TestCase public function testThatStringErrorCodeConvertsToInteger() { $envelope = new Envelope(new \stdClass()); - $exception = new class() extends \RuntimeException { public function __construct() { @@ -25,11 +24,8 @@ class HandlerFailedExceptionTest extends TestCase $originalException = $handlerException->getNestedExceptions()[0]; $this->assertIsInt($handlerException->getCode(), 'Exception codes must converts to int'); - $this->assertSame(0, $handlerException->getCode(), 'String code (HY000) converted to int must be 0'); - $this->assertIsString($originalException->getCode(), 'Original exception code still with original type (string)'); - $this->assertSame($exception->getCode(), $originalException->getCode(), 'Original exception code is not modified'); } }