Bug 560862 - PHPUnitLogger broken handling of PHPUnit notices/warnings/deprecated
Summary: PHPUnitLogger broken handling of PHPUnit notices/warnings/deprecated
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-06 09:31 EST by Michele Locati CLA
Modified: 2020-05-14 11:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Locati CLA 2020-03-06 09:31:02 EST
I'm using PHPUnit 8.5.2, and I have a few tests that needs to be fixed since they return errors.

But PHPUnit reports this error message:

There were 1 error:

1) My\Package\testMethod
Error: Access to undeclared static property: PHPUnit\Framework\Error\Notice::$enabled

J:\Temp\phpunit_printer\PHPUnitLogger.php:995
J:\Temp\phpunit_printer\PHPUnitLogger.php:934

I think we need to fix the PDT PHPUnitLogger after this change in PHPUnit:
https://github.com/sebastianbergmann/phpunit/commit/db1dce395c1843f095319a4d9652c2853ea785df

But I'm not sure how we should have instead of the lines containing `Error_Notice::$enabled`, `Error_Warning::$enabled` and `Error_Deprecated::$enabled`-..
Comment 1 Dawid Pakula CLA 2020-03-20 17:15:43 EDT
Looks like it was moved to TestResult directly. Hmm...
Comment 2 Eclipse Genie CLA 2020-03-23 16:26:10 EDT
New Gerrit change created: https://git.eclipse.org/r/159915