Fix CS
This commit is contained in:
parent
ebf9f8f71a
commit
d52515ab1b
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user