-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
fix Debug component dependencies #32248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"require": { | ||
"php": "^5.5.9|>=7.0.8", | ||
"symfony/config": "~3.2|~4.0", | ||
"symfony/debug": "~2.8|~3.0|~4.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"symfony/twig-bridge": "^3.4.3|^4.0.3", | ||
"symfony/http-foundation": "~2.8|~3.0|~4.0", | ||
"symfony/http-kernel": "^3.3|~4.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ public function testHandleClassNotFound($error, $translatedMessage, $autoloader | |
} | ||
|
||
$this->assertInstanceOf('Symfony\Component\Debug\Exception\ClassNotFoundException', $exception); | ||
$this->assertSame($translatedMessage, $exception->getMessage()); | ||
$this->assertRegExp($translatedMessage, $exception->getMessage()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why switching this to a regex, while all your regexps are anchored on both sides and contain only static parts ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. He added a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. error messages differ slightly for these two cases when the ErrorCatcher component is present: https://travis-ci.org/symfony/symfony/jobs/551399461#L4725 |
||
$this->assertSame($error['type'], $exception->getSeverity()); | ||
$this->assertSame($error['file'], $exception->getFile()); | ||
$this->assertSame($error['line'], $exception->getLine()); | ||
|
@@ -82,7 +82,7 @@ public function provideClassNotFoundData() | |
'file' => 'foo.php', | ||
'message' => 'Class \'WhizBangFactory\' not found', | ||
], | ||
"Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement?", | ||
"/^Attempted to load class \"WhizBangFactory\" from the global namespace.\nDid you forget a \"use\" statement\?$/", | ||
], | ||
[ | ||
[ | ||
|
@@ -91,7 +91,7 @@ public function provideClassNotFoundData() | |
'file' => 'foo.php', | ||
'message' => 'Class \'Foo\\Bar\\WhizBangFactory\' not found', | ||
], | ||
"Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\Bar\".\nDid you forget a \"use\" statement for another namespace?", | ||
"/^Attempted to load class \"WhizBangFactory\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for another namespace\?$/", | ||
], | ||
[ | ||
[ | ||
|
@@ -100,7 +100,7 @@ public function provideClassNotFoundData() | |
'file' => 'foo.php', | ||
'message' => 'Class \'UndefinedFunctionException\' not found', | ||
], | ||
"Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony\Component\Debug\Exception\UndefinedFunctionException\"?", | ||
"/^Attempted to load class \"UndefinedFunctionException\" from the global namespace.\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/", | ||
], | ||
[ | ||
[ | ||
|
@@ -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_Debug_Tests_Fixtures_PEARClass\"?", | ||
"/^Attempted to load class \"PEARClass\" from the global namespace.\nDid you forget a \"use\" statement for \"Symfony_Component_Debug_Tests_Fixtures_PEARClass\"\?$/", | ||
], | ||
[ | ||
[ | ||
|
@@ -118,7 +118,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\Debug\Exception\UndefinedFunctionException\"?", | ||
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for .*\"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?$/", | ||
], | ||
[ | ||
[ | ||
|
@@ -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\Debug\Exception\UndefinedFunctionException\"?", | ||
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for \"Symfony\\\\Component\\\\Debug\\\\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\Debug\Exception\UndefinedFunctionException\"?", | ||
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for \"Symfony\\\\Component\\\\Debug\\\\Exception\\\\UndefinedFunctionException\"\?/", | ||
[$debugClassLoader, 'loadClass'], | ||
], | ||
[ | ||
|
@@ -147,7 +147,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 another namespace?", | ||
"/^Attempted to load class \"UndefinedFunctionException\" from namespace \"Foo\\\\Bar\".\nDid you forget a \"use\" statement for another namespace\?$/", | ||
function ($className) { /* do nothing here */ }, | ||
], | ||
]; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FrameworkBundle
registersSymfony\Component\Debug\ErrorHandler
whenboot()
is called