Commit d2d8c347 authored by Jan Kuchař's avatar Jan Kuchař

removed unnecessary \Symfony\...\RuntimeException

parent bf9f7218
Pipeline #16079 passed with stages
in 26 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment