8000 Ensure that PHPUnit's error handler is still working in isolated tests by alexpott · Pull Request #24575 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Ensure that PHPUnit's error handler is still working in isolated tests #24575

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

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Coding standards
  • Loading branch information
alexpott committed Oct 24, 2017
commit d985e800ab9d1aa49866c03a9d31d62e68738812
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public static function collectDeprecations($outputFile)
// This can registered before the PHPUnit error handler.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: missing "be" (... can be...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in latest push - I did a rebase to get the latest changes so had to force push.

if (!$previousErrorHandler) {
$UtilPrefix = class_exists('PHPUnit_Util_ErrorHandler') ? 'PHPUnit_Util_' : 'PHPUnit\Util\\';
$previousErrorHandler = $UtilPrefix . 'ErrorHandler::handleError';
$previousErrorHandler = $UtilPrefix.'ErrorHandler::handleError';
}

register_shutdown_function(function () use ($outputFile, &$deprecations) {
Expand Down
1 change: 1 addition & 0 deletions src/Symfony/Bridge/PhpUnit/Tests/ProcessIsolationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ protected function setUp()
DeprecationErrorHandler::collectDeprecations(getenv('SYMFONY_DEPRECATIONS_SERIALIZE'));
parent::setUp();
}

/**
* @expectedDeprecation Test abc
*/
Expand Down
0