Skip to content

Micro-optimize NamePrettifier::prettifyTestMethodName()#5739

Closed
staabm wants to merge 1 commit intosebastianbergmann:mainfrom
staabm:micro
Closed

Micro-optimize NamePrettifier::prettifyTestMethodName()#5739
staabm wants to merge 1 commit intosebastianbergmann:mainfrom
staabm:micro

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Mar 12, 2024

the function call is showing up in blackfire profiles of blackfire run php ./phpunit --testsuite unit

grafik

after the change it no longer appears

@sebastianbergmann sebastianbergmann added type/performance Issues related to resource consumption (time and memory) version/10 Something affects PHPUnit 10 version/11 Something affects PHPUnit 11 labels Mar 12, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.01%. Comparing base (dede51b) to head (862a43d).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5739   +/-   ##
=========================================
  Coverage     90.01%   90.01%           
  Complexity     6493     6493           
=========================================
  Files           688      688           
  Lines         19714    19715    +1     
=========================================
+ Hits          17745    17746    +1     
  Misses         1969     1969           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sebastianbergmann
Copy link
Copy Markdown
Owner

Cherry-picked into 10.5 and merged to 11.0 and main from there. Thanks!

@staabm staabm deleted the micro branch March 12, 2024 07:02
@sebastianbergmann sebastianbergmann added the feature/testdox The TextDox printer/formatter label Mar 12, 2024
@sebastianbergmann sebastianbergmann changed the title Micro optimize NamePrettifier->prettifyTestMethodName() Micro-optimize NamePrettifier::prettifyTestMethodName() Mar 12, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature/testdox The TextDox printer/formatter type/performance Issues related to resource consumption (time and memory) version/10 Something affects PHPUnit 10 version/11 Something affects PHPUnit 11

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants