From fc15c706f12428ba7eef435d23a322abee33035f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 30 Aug 2013 13:26:06 +0200 Subject: [PATCH] [Debug] fixed unit tests --- src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php | 2 +- .../ClassNotFoundFatalErrorHandlerTest.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php index 35bc8998e4..4a390c48a1 100644 --- a/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php @@ -155,7 +155,7 @@ PHP 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "WhizBangFactory" not found', + 'message' => 'Class \'WhizBangFactory\' not found', ), 'Symfony\Component\Debug\Exception\ClassNotFoundException', 'Attempted to load class "WhizBangFactory" from the global namespace in foo.php line 12. Did you forget a use statement for this class?', diff --git a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php index 7112c8c5f3..a5fe5fbc85 100644 --- a/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php +++ b/src/Symfony/Component/Debug/Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php @@ -40,7 +40,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "WhizBangFactory" not found', + 'message' => 'Class \'WhizBangFactory\' not found', ), 'Attempted to load class "WhizBangFactory" from the global namespace in foo.php line 12. Did you forget a use statement for this class?', ), @@ -49,7 +49,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "Foo\\Bar\\WhizBangFactory" not found', + 'message' => 'Class \'Foo\\Bar\\WhizBangFactory\' not found', ), 'Attempted to load class "WhizBangFactory" from namespace "Foo\\Bar" in foo.php line 12. Do you need to "use" it from another namespace?', ), @@ -58,7 +58,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "UndefinedFunctionException" not found', + 'message' => 'Class \'UndefinedFunctionException\' not found', ), 'Attempted to load class "UndefinedFunctionException" from the global namespace in foo.php line 12. Did you forget a use statement for this class? Perhaps you need to add a use statement for one of the following: Symfony\Component\Debug\Exception\UndefinedFunctionException.', ), @@ -67,7 +67,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "PEARClass" not found', + 'message' => 'Class \'PEARClass\' not found', ), 'Attempted to load class "PEARClass" from the global namespace in foo.php line 12. Did you forget a use statement for this class? Perhaps you need to add a use statement for one of the following: Symfony_Component_Debug_Tests_Fixtures_PEARClass.', ), @@ -76,7 +76,7 @@ class ClassNotFoundFatalErrorHandlerTest extends \PHPUnit_Framework_TestCase 'type' => 1, 'line' => 12, 'file' => 'foo.php', - 'message' => 'Class "Foo\\Bar\\UndefinedFunctionException" not found', + 'message' => 'Class \'Foo\\Bar\\UndefinedFunctionException\' not found', ), 'Attempted to load class "UndefinedFunctionException" from namespace "Foo\Bar" in foo.php line 12. Do you need to "use" it from another namespace? Perhaps you need to add a use statement for one of the following: Symfony\Component\Debug\Exception\UndefinedFunctionException.', ),