diff --git a/src/Symfony/Component/ErrorHandler/Exception/ClassNotFoundException.php b/src/Symfony/Component/ErrorCatcher/Exception/ClassNotFoundException.php
similarity index 94%
rename from src/Symfony/Component/ErrorHandler/Exception/ClassNotFoundException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/ClassNotFoundException.php
index b0638826d6414..f793f8d55ca6f 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/ClassNotFoundException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/ClassNotFoundException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Class (or Trait or Interface) Not Found Exception.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/ErrorRendererNotFoundException.php b/src/Symfony/Component/ErrorCatcher/Exception/ErrorRendererNotFoundException.php
similarity index 85%
rename from src/Symfony/Component/ErrorHandler/Exception/ErrorRendererNotFoundException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/ErrorRendererNotFoundException.php
index 45db78a83ee74..05721b0751e89 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/ErrorRendererNotFoundException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/ErrorRendererNotFoundException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
class ErrorRendererNotFoundException extends \RuntimeException
{
diff --git a/src/Symfony/Component/ErrorHandler/Exception/FatalErrorException.php b/src/Symfony/Component/ErrorCatcher/Exception/FatalErrorException.php
similarity index 98%
rename from src/Symfony/Component/ErrorHandler/Exception/FatalErrorException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/FatalErrorException.php
index 4269356d5724d..c98e46d5aab8a 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/FatalErrorException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/FatalErrorException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Fatal Error Exception.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/FatalThrowableError.php b/src/Symfony/Component/ErrorCatcher/Exception/FatalThrowableError.php
similarity index 95%
rename from src/Symfony/Component/ErrorHandler/Exception/FatalThrowableError.php
rename to src/Symfony/Component/ErrorCatcher/Exception/FatalThrowableError.php
index a690c835975f8..86aa298db842d 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/FatalThrowableError.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/FatalThrowableError.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Fatal Throwable Error.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php b/src/Symfony/Component/ErrorCatcher/Exception/FlattenException.php
similarity index 99%
rename from src/Symfony/Component/ErrorHandler/Exception/FlattenException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/FlattenException.php
index cb63888cd7a5a..27f7ace4bec6e 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/FlattenException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/FlattenException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
use Symfony\Component\HttpFoundation\Exception\RequestExceptionInterface;
use Symfony\Component\HttpFoundation\Response;
diff --git a/src/Symfony/Component/ErrorHandler/Exception/OutOfMemoryException.php b/src/Symfony/Component/ErrorCatcher/Exception/OutOfMemoryException.php
similarity index 87%
rename from src/Symfony/Component/ErrorHandler/Exception/OutOfMemoryException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/OutOfMemoryException.php
index 18c367596f630..ed01e6e661308 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/OutOfMemoryException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/OutOfMemoryException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Out of memory exception.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/SilencedErrorContext.php b/src/Symfony/Component/ErrorCatcher/Exception/SilencedErrorContext.php
similarity index 96%
rename from src/Symfony/Component/ErrorHandler/Exception/SilencedErrorContext.php
rename to src/Symfony/Component/ErrorCatcher/Exception/SilencedErrorContext.php
index 2c4ae69db419d..46e9b55d7ca24 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/SilencedErrorContext.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/SilencedErrorContext.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Data Object that represents a Silenced Error.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/UndefinedFunctionException.php b/src/Symfony/Component/ErrorCatcher/Exception/UndefinedFunctionException.php
similarity index 94%
rename from src/Symfony/Component/ErrorHandler/Exception/UndefinedFunctionException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/UndefinedFunctionException.php
index bb2f46564d4d7..aef70895c104b 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/UndefinedFunctionException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/UndefinedFunctionException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Undefined Function Exception.
diff --git a/src/Symfony/Component/ErrorHandler/Exception/UndefinedMethodException.php b/src/Symfony/Component/ErrorCatcher/Exception/UndefinedMethodException.php
similarity index 94%
rename from src/Symfony/Component/ErrorHandler/Exception/UndefinedMethodException.php
rename to src/Symfony/Component/ErrorCatcher/Exception/UndefinedMethodException.php
index 12efdc716c5dc..50a9d1f391d69 100644
--- a/src/Symfony/Component/ErrorHandler/Exception/UndefinedMethodException.php
+++ b/src/Symfony/Component/ErrorCatcher/Exception/UndefinedMethodException.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Exception;
+namespace Symfony\Component\ErrorCatcher\Exception;
/**
* Undefined Method Exception.
diff --git a/src/Symfony/Component/ErrorHandler/ExceptionHandler.php b/src/Symfony/Component/ErrorCatcher/ExceptionHandler.php
similarity index 95%
rename from src/Symfony/Component/ErrorHandler/ExceptionHandler.php
rename to src/Symfony/Component/ErrorCatcher/ExceptionHandler.php
index 577ff49230735..63b36d29d4011 100644
--- a/src/Symfony/Component/ErrorHandler/ExceptionHandler.php
+++ b/src/Symfony/Component/ErrorCatcher/ExceptionHandler.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler;
+namespace Symfony\Component\ErrorCatcher;
-use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
-use Symfony\Component\ErrorHandler\Exception\OutOfMemoryException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\HtmlErrorRenderer;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\Exception\OutOfMemoryException;
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
/**
diff --git a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
similarity index 97%
rename from src/Symfony/Component/ErrorHandler/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
rename to src/Symfony/Component/ErrorCatcher/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
index c84b3e8e4ce74..a9f3e39bb7c90 100644
--- a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
+++ b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
@@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\FatalErrorHandler;
use Composer\Autoload\ClassLoader as ComposerClassLoader;
use Symfony\Component\ClassLoader\ClassLoader as SymfonyClassLoader;
use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\ErrorHandler\Exception\ClassNotFoundException;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\Exception\ClassNotFoundException;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
/**
* ErrorHandler for classes that do not exist.
diff --git a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/FatalErrorHandlerInterface.php b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/FatalErrorHandlerInterface.php
similarity index 87%
rename from src/Symfony/Component/ErrorHandler/FatalErrorHandler/FatalErrorHandlerInterface.php
rename to src/Symfony/Component/ErrorCatcher/FatalErrorHandler/FatalErrorHandlerInterface.php
index afa8b7d2367d6..6fc237c094263 100644
--- a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/FatalErrorHandlerInterface.php
+++ b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/FatalErrorHandlerInterface.php
@@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\FatalErrorHandler;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
/**
* Attempts to convert fatal errors to exceptions.
diff --git a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
similarity index 93%
rename from src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
rename to src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
index 9e3affb14dbac..f20cb1185d2ba 100644
--- a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
+++ b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\FatalErrorHandler;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
-use Symfony\Component\ErrorHandler\Exception\UndefinedFunctionException;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\Exception\UndefinedFunctionException;
/**
* ErrorHandler for undefined functions.
diff --git a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
similarity index 91%
rename from src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
rename to src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
index 49de27446945a..6f9a3eb545d75 100644
--- a/src/Symfony/Component/ErrorHandler/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
+++ b/src/Symfony/Component/ErrorCatcher/FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
@@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\FatalErrorHandler;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
-use Symfony\Component\ErrorHandler\Exception\UndefinedMethodException;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\Exception\UndefinedMethodException;
/**
* ErrorHandler for undefined methods.
diff --git a/src/Symfony/Component/ErrorHandler/LICENSE b/src/Symfony/Component/ErrorCatcher/LICENSE
similarity index 100%
rename from src/Symfony/Component/ErrorHandler/LICENSE
rename to src/Symfony/Component/ErrorCatcher/LICENSE
diff --git a/src/Symfony/Component/ErrorHandler/README.md b/src/Symfony/Component/ErrorCatcher/README.md
similarity index 80%
rename from src/Symfony/Component/ErrorHandler/README.md
rename to src/Symfony/Component/ErrorCatcher/README.md
index 7b1aa8196711f..7eba105932be0 100644
--- a/src/Symfony/Component/ErrorHandler/README.md
+++ b/src/Symfony/Component/ErrorCatcher/README.md
@@ -1,7 +1,7 @@
-ErrorHandler Component
+ErrorCatcher Component
======================
-The ErrorHandler component provides tools to manage and display errors and exceptions.
+The ErrorCatcher component provides tools to manage and display errors and exceptions.
Resources
---------
diff --git a/src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorHandlerPassTest.php b/src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorCatcherPassTest.php
similarity index 61%
rename from src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorHandlerPassTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorCatcherPassTest.php
index 3d0b8e429f53e..ed2162b661699 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorHandlerPassTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorCatcherPassTest.php
@@ -9,42 +9,42 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\DependencyInjection;
+namespace Symfony\Component\ErrorCatcher\Tests\DependencyInjection;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ServiceLocator;
-use Symfony\Component\ErrorHandler\DependencyInjection\ErrorHandlerPass;
-use Symfony\Component\ErrorHandler\DependencyInjection\ErrorRenderer;
-use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
-use Symfony\Component\ErrorHandler\ErrorRenderer\JsonErrorRenderer;
+use Symfony\Component\ErrorCatcher\DependencyInjection\ErrorCatcherPass;
+use Symfony\Component\ErrorCatcher\DependencyInjection\ErrorRenderer;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\HtmlErrorRenderer;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\JsonErrorRenderer;
-class ErrorHandlerPassTest extends TestCase
+class ErrorPassTest extends TestCase
{
public function testProcess()
{
$container = new ContainerBuilder();
$container->setParameter('kernel.debug', true);
- $definition = $container->register('error_handler.error_renderer', ErrorRenderer::class)
+ $definition = $container->register('error_catcher.error_renderer', ErrorRenderer::class)
->addArgument([])
;
- $container->register('error_handler.renderer.html', HtmlErrorRenderer::class)
- ->addTag('error_handler.renderer')
+ $container->register('error_catcher.renderer.html', HtmlErrorRenderer::class)
+ ->addTag('error_catcher.renderer')
;
- $container->register('error_handler.renderer.json', JsonErrorRenderer::class)
- ->addTag('error_handler.renderer')
+ $container->register('error_catcher.renderer.json', JsonErrorRenderer::class)
+ ->addTag('error_catcher.renderer')
;
- (new ErrorHandlerPass())->process($container);
+ (new ErrorCatcherPass())->process($container);
$serviceLocatorDefinition = $container->getDefinition((string) $definition->getArgument(0));
$this->assertSame(ServiceLocator::class, $serviceLocatorDefinition->getClass());
$expected = [
- 'html' => new ServiceClosureArgument(new Reference('error_handler.renderer.html')),
- 'json' => new ServiceClosureArgument(new Reference('error_handler.renderer.json')),
+ 'html' => new ServiceClosureArgument(new Reference('error_catcher.renderer.html')),
+ 'json' => new ServiceClosureArgument(new Reference('error_catcher.renderer.json')),
];
$this->assertEquals($expected, $serviceLocatorDefinition->getArgument(0));
}
diff --git a/src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorRendererTest.php
similarity index 84%
rename from src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorRendererTest.php
index fcf909fddca54..747cd5069670e 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/DependencyInjection/ErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/DependencyInjection/ErrorRendererTest.php
@@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\DependencyInjection;
+namespace Symfony\Component\ErrorCatcher\Tests\DependencyInjection;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\DependencyInjection\ErrorRenderer;
-use Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\DependencyInjection\ErrorRenderer;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\ErrorRendererInterface;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class ErrorRendererTest extends TestCase
{
/**
- * @expectedException \Symfony\Component\ErrorHandler\Exception\ErrorRendererNotFoundException
+ * @expectedException \Symfony\Component\ErrorCatcher\Exception\ErrorRendererNotFoundException
* @expectedExceptionMessage No error renderer found for format "foo".
*/
public function testInvalidErrorRenderer()
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorHandlerTest.php
similarity index 97%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorHandlerTest.php
index 9701558164bc8..d1d845a8665d7 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorHandlerTest.php
@@ -9,16 +9,16 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests;
+namespace Symfony\Component\ErrorCatcher\Tests;
use PHPUnit\Framework\TestCase;
use Psr\Log\LogLevel;
use Psr\Log\NullLogger;
-use Symfony\Component\ErrorHandler\BufferingLogger;
-use Symfony\Component\ErrorHandler\ErrorHandler;
-use Symfony\Component\ErrorHandler\Exception\SilencedErrorContext;
-use Symfony\Component\ErrorHandler\Tests\Fixtures\ErrorHandlerThatUsesThePreviousOne;
-use Symfony\Component\ErrorHandler\Tests\Fixtures\LoggerThatSetAnErrorHandler;
+use Symfony\Component\ErrorCatcher\BufferingLogger;
+use Symfony\Component\ErrorCatcher\ErrorHandler;
+use Symfony\Component\ErrorCatcher\Exception\SilencedErrorContext;
+use Symfony\Component\ErrorCatcher\Tests\Fixtures\ErrorHandlerThatUsesThePreviousOne;
+use Symfony\Component\ErrorCatcher\Tests\Fixtures\LoggerThatSetAnErrorHandler;
/**
* ErrorHandlerTest.
@@ -33,7 +33,7 @@ public function testRegister()
$handler = ErrorHandler::register();
try {
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\ErrorHandler', $handler);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\ErrorHandler', $handler);
$this->assertSame($handler, ErrorHandler::register());
$newHandler = new ErrorHandler();
@@ -490,7 +490,7 @@ public function testHandleErrorException()
$handler->handleException($exception);
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\Exception\ClassNotFoundException', $args[0]);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\Exception\ClassNotFoundException', $args[0]);
$this->assertStringStartsWith("Attempted to load class \"IReallyReallyDoNotExistAnywhereInTheRepositoryISwear\" from the global namespace.\nDid you forget a \"use\" statement", $args[0]->getMessage());
}
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/ErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/ErrorRendererTest.php
similarity index 80%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/ErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/ErrorRendererTest.php
index 5f77fdc2069d9..156de10c662a0 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/ErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/ErrorRendererTest.php
@@ -9,17 +9,17 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer;
+namespace Symfony\Component\ErrorCatcher\Tests\ErrorRenderer;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRenderer;
-use Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\ErrorRenderer;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\ErrorRendererInterface;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class ErrorRendererTest extends TestCase
{
/**
- * @expectedException \Symfony\Component\ErrorHandler\Exception\ErrorRendererNotFoundException
+ * @expectedException \Symfony\Component\ErrorCatcher\Exception\ErrorRendererNotFoundException
* @expectedExceptionMessage No error renderer found for format "foo".
*/
public function testErrorRendererNotFound()
@@ -30,7 +30,7 @@ public function testErrorRendererNotFound()
/**
* @expectedException \InvalidArgumentException
- * @expectedExceptionMessage Error renderer "stdClass" must implement "Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface".
+ * @expectedExceptionMessage Error renderer "stdClass" must implement "Symfony\Component\ErrorCatcher\ErrorRenderer\ErrorRendererInterface".
*/
public function testInvalidErrorRenderer()
{
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/HtmlErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/HtmlErrorRendererTest.php
similarity index 80%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/HtmlErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/HtmlErrorRendererTest.php
index a380de4ab9628..3054e28510bc2 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/HtmlErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/HtmlErrorRendererTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer;
+namespace Symfony\Component\ErrorCatcher\Tests\ErrorRenderer;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\HtmlErrorRenderer;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class HtmlErrorRendererTest extends TestCase
{
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/JsonErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/JsonErrorRendererTest.php
similarity index 78%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/JsonErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/JsonErrorRendererTest.php
index 7bfc048402767..bbc754f9094ba 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/JsonErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/JsonErrorRendererTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer;
+namespace Symfony\Component\ErrorCatcher\Tests\ErrorRenderer;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\ErrorRenderer\JsonErrorRenderer;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\JsonErrorRenderer;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class JsonErrorRendererTest extends TestCase
{
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/TxtErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/TxtErrorRendererTest.php
similarity index 77%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/TxtErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/TxtErrorRendererTest.php
index d48d924ad97d1..b3c817581ca19 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/TxtErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/TxtErrorRendererTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer;
+namespace Symfony\Component\ErrorCatcher\Tests\ErrorRenderer;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\ErrorRenderer\TxtErrorRenderer;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\TxtErrorRenderer;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class TxtErrorRendererTest extends TestCase
{
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/XmlErrorRendererTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/XmlErrorRendererTest.php
similarity index 79%
rename from src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/XmlErrorRendererTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/XmlErrorRendererTest.php
index 4bed569c1be97..f98e43920ab22 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/XmlErrorRendererTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ErrorRenderer/XmlErrorRendererTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\ErrorRenderer;
+namespace Symfony\Component\ErrorCatcher\Tests\ErrorRenderer;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\ErrorRenderer\XmlErrorRenderer;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\ErrorRenderer\XmlErrorRenderer;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
class XmlErrorRendererTest extends TestCase
{
diff --git a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php b/src/Symfony/Component/ErrorCatcher/Tests/Exception/FlattenExceptionTest.php
similarity index 98%
rename from src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/Exception/FlattenExceptionTest.php
index a9c717e309ec8..c6d99662d2893 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/Exception/FlattenExceptionTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\Exception;
+namespace Symfony\Component\ErrorCatcher\Tests\Exception;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\Exception\FatalThrowableError;
-use Symfony\Component\ErrorHandler\Exception\FlattenException;
+use Symfony\Component\ErrorCatcher\Exception\FatalThrowableError;
+use Symfony\Component\ErrorCatcher\Exception\FlattenException;
use Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
diff --git a/src/Symfony/Component/ErrorHandler/Tests/ExceptionHandlerTest.php b/src/Symfony/Component/ErrorCatcher/Tests/ExceptionHandlerTest.php
similarity index 93%
rename from src/Symfony/Component/ErrorHandler/Tests/ExceptionHandlerTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/ExceptionHandlerTest.php
index 03c39d36860d9..d3b8deec80c4d 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/ExceptionHandlerTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/ExceptionHandlerTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests;
+namespace Symfony\Component\ErrorCatcher\Tests;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\Exception\OutOfMemoryException;
-use Symfony\Component\ErrorHandler\ExceptionHandler;
+use Symfony\Component\ErrorCatcher\Exception\OutOfMemoryException;
+use Symfony\Component\ErrorCatcher\ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -110,7 +110,7 @@ public function testHandle()
{
$exception = new \Exception('foo');
- $handler = $this->getMockBuilder('Symfony\Component\ErrorHandler\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
+ $handler = $this->getMockBuilder('Symfony\Component\ErrorCatcher\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
$handler
->expects($this->exactly(2))
->method('sendPhpResponse');
@@ -128,7 +128,7 @@ public function testHandleOutOfMemoryException()
{
$exception = new OutOfMemoryException('foo', 0, E_ERROR, __FILE__, __LINE__);
- $handler = $this->getMockBuilder('Symfony\Component\ErrorHandler\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
+ $handler = $this->getMockBuilder('Symfony\Component\ErrorCatcher\ExceptionHandler')->setMethods(['sendPhpResponse'])->getMock();
$handler
->expects($this->once())
->method('sendPhpResponse');
diff --git a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
similarity index 89%
rename from src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
index 2fdec8dcf5ac3..0d02f6ca93da6 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
@@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\Tests\FatalErrorHandler;
use Composer\Autoload\ClassLoader as ComposerClassLoader;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Debug\DebugClassLoader;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
-use Symfony\Component\ErrorHandler\FatalErrorHandler\ClassNotFoundFatalErrorHandler;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\FatalErrorHandler\ClassNotFoundFatalErrorHandler;
class ClassNotFoundFatalErrorHandlerTest extends TestCase
{
@@ -32,7 +32,7 @@ public static function setUpBeforeClass()
}
if ($function[0] instanceof ComposerClassLoader) {
- $function[0]->add('Symfony_Component_ErrorHandler_Tests_Fixtures', \dirname(\dirname(\dirname(\dirname(\dirname(__DIR__))))));
+ $function[0]->add('Symfony_Component_ErrorCatcher_Tests_Fixtures', \dirname(\dirname(\dirname(\dirname(\dirname(__DIR__))))));
break;
}
}
@@ -60,7 +60,7 @@ public function testHandleClassNotFound($error, $translatedMessage, $autoloader
array_map('spl_autoload_register', $autoloaders);
}
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\Exception\ClassNotFoundException', $exception);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\Exception\ClassNotFoundException', $exception);
$this->assertSame($translatedMessage, $exception->getMessage());
$this->assertSame($error['type'], $exception->getSeverity());
$this->assertSame($error['file'], $exception->getFile());
@@ -70,7 +70,7 @@ public function testHandleClassNotFound($error, $translatedMessage, $autoloader
public function provideClassNotFoundData()
{
$autoloader = new ComposerClassLoader();
- $autoloader->add('Symfony\Component\ErrorHandler\Exception\\', realpath(__DIR__.'/../../Exception'));
+ $autoloader->add('Symfony\Component\ErrorCatcher\Exception\\', realpath(__DIR__.'/../../Exception'));
$debugClassLoader = new DebugClassLoader([$autoloader, 'loadClass']);
@@ -100,7 +100,7 @@ public function provideClassNotFoundData()
'file' => 'foo.php',
'message' => 'Class \'UndefinedFuncException\' not found',
],
- "Attempted to load class \"UndefinedFuncException\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Tests\Fixtures\UndefinedFuncException\"?",
+ "Attempted to load class \"UndefinedFuncException\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorCatcher\Tests\Fixtures\UndefinedFuncException\"?",
],
[
[
@@ -109,7 +109,7 @@ public function provideClassNotFoundData()
'file' => 'foo.php',
'message' => 'Class \'PEARClass\' not found',
],
- "Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_ErrorHandler_Tests_Fixtures_PEARClass\"?",
+ "Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_ErrorCatcher_Tests_Fixtures_PEARClass\"?",
],
[
[
@@ -118,7 +118,7 @@ public function provideClassNotFoundData()
'file' => 'foo.php',
'message' => 'Class \'Foo\\Bar\\UndefinedFuncException\' not found',
],
- "Attempted to load class \"UndefinedFuncException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Tests\Fixtures\UndefinedFuncException\"?",
+ "Attempted to load class \"UndefinedFuncException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorCatcher\Tests\Fixtures\UndefinedFuncException\"?",
],
[
[
@@ -127,7 +127,7 @@ public function provideClassNotFoundData()
'file' => 'foo.php',
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Exception\UndefinedFunctionException\"?",
+ "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorCatcher\Exception\UndefinedFunctionException\"?",
[$autoloader, 'loadClass'],
],
[
@@ -137,7 +137,7 @@ public function provideClassNotFoundData()
'file' => 'foo.php',
'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found',
],
- "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorHandler\Exception\UndefinedFunctionException\"?",
+ "Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\Bar\".\nDid you forget a \"use\" statement for \"Symfony\Component\ErrorCatcher\Exception\UndefinedFunctionException\"?",
[$debugClassLoader, 'loadClass'],
],
[
@@ -171,6 +171,6 @@ public function testCannotRedeclareClass()
$handler = new ClassNotFoundFatalErrorHandler();
$exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\Exception\ClassNotFoundException', $exception);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\Exception\ClassNotFoundException', $exception);
}
}
diff --git a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
similarity index 87%
rename from src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
index c24109b1b3525..cf8a5fc319ee3 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\Tests\FatalErrorHandler;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
-use Symfony\Component\ErrorHandler\FatalErrorHandler\UndefinedFunctionFatalErrorHandler;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\FatalErrorHandler\UndefinedFunctionFatalErrorHandler;
class UndefinedFunctionFatalErrorHandlerTest extends TestCase
{
@@ -25,7 +25,7 @@ public function testUndefinedFunction($error, $translatedMessage)
$handler = new UndefinedFunctionFatalErrorHandler();
$exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\Exception\UndefinedFunctionException', $exception);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\Exception\UndefinedFunctionException', $exception);
// class names are case insensitive and PHP do not return the same
$this->assertSame(strtolower($translatedMessage), strtolower($exception->getMessage()));
$this->assertSame($error['type'], $exception->getSeverity());
@@ -43,7 +43,7 @@ public function provideUndefinedFunctionData()
'file' => 'foo.php',
'message' => 'Call to undefined function test_namespaced_function()',
],
- "Attempted to call function \"test_namespaced_function\" from the global namespace.\nDid you mean to call \"\\symfony\\component\\errorhandler\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
+ "Attempted to call function \"test_namespaced_function\" from the global namespace.\nDid you mean to call \"\\symfony\\component\\errorcatcher\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
],
[
[
@@ -52,7 +52,7 @@ public function provideUndefinedFunctionData()
'file' => 'foo.php',
'message' => 'Call to undefined function Foo\\Bar\\Baz\\test_namespaced_function()',
],
- "Attempted to call function \"test_namespaced_function\" from namespace \"Foo\\Bar\\Baz\".\nDid you mean to call \"\\symfony\\component\\errorhandler\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
+ "Attempted to call function \"test_namespaced_function\" from namespace \"Foo\\Bar\\Baz\".\nDid you mean to call \"\\symfony\\component\\errorcatcher\\tests\\fatalerrorhandler\\test_namespaced_function\"?",
],
[
[
diff --git a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
similarity index 91%
rename from src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
rename to src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
index b91792b440329..0f0c9c5f2de65 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
@@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\ErrorHandler\Tests\FatalErrorHandler;
+namespace Symfony\Component\ErrorCatcher\Tests\FatalErrorHandler;
use PHPUnit\Framework\TestCase;
-use Symfony\Component\ErrorHandler\Exception\FatalErrorException;
-use Symfony\Component\ErrorHandler\FatalErrorHandler\UndefinedMethodFatalErrorHandler;
+use Symfony\Component\ErrorCatcher\Exception\FatalErrorException;
+use Symfony\Component\ErrorCatcher\FatalErrorHandler\UndefinedMethodFatalErrorHandler;
class UndefinedMethodFatalErrorHandlerTest extends TestCase
{
@@ -25,7 +25,7 @@ public function testUndefinedMethod($error, $translatedMessage)
$handler = new UndefinedMethodFatalErrorHandler();
$exception = $handler->handleError($error, new FatalErrorException('', 0, $error['type'], $error['file'], $error['line']));
- $this->assertInstanceOf('Symfony\Component\ErrorHandler\Exception\UndefinedMethodException', $exception);
+ $this->assertInstanceOf('Symfony\Component\ErrorCatcher\Exception\UndefinedMethodException', $exception);
$this->assertSame($translatedMessage, $exception->getMessage());
$this->assertSame($error['type'], $exception->getSeverity());
$this->assertSame($error['file'], $exception->getFile());
diff --git a/src/Symfony/Component/ErrorHandler/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php b/src/Symfony/Component/ErrorCatcher/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
similarity index 88%
rename from src/Symfony/Component/ErrorHandler/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
rename to src/Symfony/Component/ErrorCatcher/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
index 7cc51ff3229f5..c3c477fbf5465 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
+++ b/src/Symfony/Component/ErrorCatcher/Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
@@ -1,6 +1,6 @@
--EXPECTF--
-object(Symfony\Component\ErrorHandler\Exception\ClassNotFoundException)#%d (8) {
+object(Symfony\Component\ErrorCatcher\Exception\ClassNotFoundException)#%d (8) {
["message":protected]=>
- string(138) "Attempted to load class "missing" from namespace "Symfony\Component\ErrorHandler".
+ string(138) "Attempted to load class "missing" from namespace "Symfony\Component\ErrorCatcher".
Did you forget a "use" statement for another namespace?"
["string":"Exception":private]=>
string(0) ""
diff --git a/src/Symfony/Component/ErrorHandler/Tests/phpt/exception_rethrown.phpt b/src/Symfony/Component/ErrorCatcher/Tests/phpt/exception_rethrown.phpt
similarity index 94%
rename from src/Symfony/Component/ErrorHandler/Tests/phpt/exception_rethrown.phpt
rename to src/Symfony/Component/ErrorCatcher/Tests/phpt/exception_rethrown.phpt
index 82a9006d840f9..df3495c991c55 100644
--- a/src/Symfony/Component/ErrorHandler/Tests/phpt/exception_rethrown.phpt
+++ b/src/Symfony/Component/ErrorCatcher/Tests/phpt/exception_rethrown.phpt
@@ -3,7 +3,7 @@ Test rethrowing in custom exception handler
--FILE--
string(37) "Error and exception handlers do match"
}
-object(Symfony\Component\ErrorHandler\Exception\FatalErrorException)#%d (%d) {
+object(Symfony\Component\ErrorCatcher\Exception\FatalErrorException)#%d (%d) {
["message":protected]=>
- string(186) "Error: Class Symfony\Component\ErrorHandler\Broken contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize)"
+ string(186) "Error: Class Symfony\Component\ErrorCatcher\Broken contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (JsonSerializable::jsonSerialize)"
%a
}
diff --git a/src/Symfony/Component/ErrorHandler/composer.json b/src/Symfony/Component/ErrorCatcher/composer.json
similarity index 84%
rename from src/Symfony/Component/ErrorHandler/composer.json
rename to src/Symfony/Component/ErrorCatcher/composer.json
index 0b905712024b6..42579d087bc45 100644
--- a/src/Symfony/Component/ErrorHandler/composer.json
+++ b/src/Symfony/Component/ErrorCatcher/composer.json
@@ -1,7 +1,7 @@
{
- "name": "symfony/error-handler",
+ "name": "symfony/error-catcher",
"type": "library",
- "description": "Symfony ErrorHandler Component",
+ "description": "Symfony ErrorCatcher Component",
"keywords": [],
"homepage": "https://symfony.com",
"license": "MIT",
@@ -28,7 +28,7 @@
"symfony/http-kernel": "<4.4"
},
"autoload": {
- "psr-4": { "Symfony\\Component\\ErrorHandler\\": "" },
+ "psr-4": { "Symfony\\Component\\ErrorCatcher\\": "" },
"exclude-from-classmap": [
"/Tests/"
]
diff --git a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist b/src/Symfony/Component/ErrorCatcher/phpunit.xml.dist
similarity index 92%
rename from src/Symfony/Component/ErrorHandler/phpunit.xml.dist
rename to src/Symfony/Component/ErrorCatcher/phpunit.xml.dist
index 494bb652f4d03..c5274e736fad5 100644
--- a/src/Symfony/Component/ErrorHandler/phpunit.xml.dist
+++ b/src/Symfony/Component/ErrorCatcher/phpunit.xml.dist
@@ -13,7 +13,7 @@
-
+
./Tests/
diff --git a/src/Symfony/Component/ErrorHandler/Tests/Fixtures/PEARClass.php b/src/Symfony/Component/ErrorHandler/Tests/Fixtures/PEARClass.php
deleted file mode 100644
index 67620eba1c233..0000000000000
--- a/src/Symfony/Component/ErrorHandler/Tests/Fixtures/PEARClass.php
+++ /dev/null
@@ -1,5 +0,0 @@
- ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castTraceStub'],
'Symfony\Component\VarDumper\Caster\FrameStub' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castFrameStub'],
'Symfony\Component\VarDumper\Cloner\AbstractCloner' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
- 'Symfony\Component\ErrorHandler\Exception\SilencedErrorContext' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castSilencedErrorContext'],
+ 'Symfony\Component\ErrorCatcher\Exception\SilencedErrorContext' => ['Symfony\Component\VarDumper\Caster\ExceptionCaster', 'castSilencedErrorContext'],
'ProxyManager\Proxy\ProxyInterface' => ['Symfony\Component\VarDumper\Caster\ProxyManagerCaster', 'castProxy'],
'PHPUnit_Framework_MockObject_MockObject' => ['Symfony\Component\VarDumper\Caster\StubCaster', 'cutInternals'],
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy