diff --git a/tests/nested.phpt b/tests/nested.phpt index 8bb53827d4faade25a83b1af9cb3003765e67d01..dd2fb0667586f2c3ea31ef8cbf30160de62b77f0 100644 --- a/tests/nested.phpt +++ b/tests/nested.phpt @@ -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,9 +14,9 @@ class TestingSuppressedExceptionsException extends \RuntimeException implements } -$previous = new TestingSuppressedExceptionsException('previous', -1, new RuntimeException()); +$previous = new TestingSuppressedExceptionsException('previous', -1, new \RuntimeException()); $exception1 = new TestingSuppressedExceptionsException('message', 42, $previous); -$exception1->addSuppressed(new RuntimeException('message', 0, $previous)); +$exception1->addSuppressed(new \RuntimeException('message', 0, $previous)); $exception2 = new TestingSuppressedExceptionsException('message2', 42); $exception2->addSuppressed($previous); diff --git a/tests/nested_exception-message.txt b/tests/nested_exception-message.txt index af012b40e14fedee68b84d7e3440fb10f147a2a3..cce86096e6842950c1dc0cf1c2d7fda583a45eb2 100644 --- a/tests/nested_exception-message.txt +++ b/tests/nested_exception-message.txt @@ -1,12 +1,12 @@ message2 Suppressed exceptions: -- nested.phpt:18 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) - previous: nested.phpt:18 - Symfony\Component\Console\Exception\RuntimeException -- nested.phpt:19 - message +- nested.phpt:17 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) + previous: nested.phpt:17 - RuntimeException +- nested.phpt:18 - message Suppressed exceptions: - - nested.phpt:20 - message (Symfony\Component\Console\Exception\RuntimeException) - previous: nested.phpt:18 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) - previous: nested.phpt:18 - Symfony\Component\Console\Exception\RuntimeException + - nested.phpt:19 - message (RuntimeException) + previous: nested.phpt:17 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) + previous: nested.phpt:17 - RuntimeException (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) - previous: nested.phpt:18 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) - previous: nested.phpt:18 - Symfony\Component\Console\Exception\RuntimeException + previous: nested.phpt:17 - previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException) + previous: nested.phpt:17 - RuntimeException