Skip to content
Snippets Groups Projects
Commit d2d8c347 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

removed unnecessary \Symfony\...\RuntimeException

parent bf9f7218
Branches
Tags
1 merge request!1print suppressed exceptions & their parents information into message
Pipeline #16079 passed
......@@ -4,7 +4,6 @@ namespace Grifart\SuppressedExceptions\__tests;
use Grifart\SuppressedExceptions\SuppressedExceptions;
use Grifart\SuppressedExceptions\WithSuppressedExceptions;
use Symfony\Component\Console\Exception\RuntimeException;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
......@@ -15,7 +14,7 @@ class TestingSuppressedExceptionsException extends \RuntimeException implements
}
$previous = new TestingSuppressedExceptionsException('previous', -1, new RuntimeException());
$previous = new TestingSuppressedExceptionsException('previous', -1, new \RuntimeException());
$exception = new TestingSuppressedExceptionsException('message', 42, $previous);
$exception->addSuppressed($suppressed1 = new \RuntimeException());
......
message
Suppressed exceptions:
- simple.phpt:21 - RuntimeException
- simple.phpt:22 - This is message (LogicException)
- simple.phpt:23 - Error
- simple.phpt:24 - With previous (Exception)
previous: simple.phpt:18 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException)
previous: simple.phpt:18 - Symfony\Component\Console\Exception\RuntimeException
- simple.phpt:25 - Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException
- simple.phpt:20 - RuntimeException
- simple.phpt:21 - This is message (LogicException)
- simple.phpt:22 - Error
- simple.phpt:23 - With previous (Exception)
previous: simple.phpt:17 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException)
previous: simple.phpt:17 - RuntimeException
- simple.phpt:24 - Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment