Skip to content
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

test case start time is null and JunitXmlLogger throws fatal error #5562

Closed
sakarikl opened this issue Nov 14, 2023 · 1 comment
Closed

test case start time is null and JunitXmlLogger throws fatal error #5562

sakarikl opened this issue Nov 14, 2023 · 1 comment
Labels
type/bug Something is broken version/10 Something affects PHPUnit 10

Comments

@sakarikl
Copy link

Q A
PHPUnit version 10.4.2
PHP version 8.2.12
Installation Method Composer

Summary

Fatal error: Uncaught TypeError: PHPUnit\Event\Telemetry\HRTime::duration() : Argument #1 ($start) must be of type PHPUnit\Event\Telemetry\HRTime, null given, called in /builds/verkkokauppa/verkkokauppa/vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php on line 241 and defined in vendor/phpunit/phpunit/src/Event/Value/Telemetry/HRTime.php:62

I can not test this on PHPUnit 9

Current behaviour

Can not reproduce this locally, but in our CI environment this happens repeatably. Started to happen after adding new test case for existing test file.

Environment

Run with ParaTest v7.3.1

@sakarikl sakarikl added type/bug Something is broken version/10 Something affects PHPUnit 10 labels Nov 14, 2023
@sakarikl
Copy link
Author

duplicate of #5561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken version/10 Something affects PHPUnit 10
Projects
None yet
Development

No branches or pull requests

1 participant