Skip to content

Commit

Permalink
fixed importing tests with _
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Aug 17, 2023
1 parent c31cd77 commit adc71c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private function formatCode(ReflectionMethod $method)

private function humanize($name)
{
$name = str_replace('_', ' ', $name);
$name = preg_replace('/([A-Z]+)([A-Z][a-z])/', '\\1 \\2', $name);
$name = preg_replace('/([a-z\d])([A-Z])/', '\\1 \\2', $name);
$name = strtolower($name);
Expand Down

0 comments on commit adc71c3

Please sign in to comment.