Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit d244cd2

Browse files
authored
Update JobGenerator.php
Proposal to generate test function name with snake case. Now: test_jobclassname() After: test_job_class_name().
1 parent 9b9aacc commit d244cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/JobGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function generateTestFile($job, $domain)
7676

7777
$content = str_replace(
7878
['{{namespace}}', '{{testclass}}', '{{job}}', '{{job_namespace}}'],
79-
[$namespace, $testClass, mb_strtolower($job), $jobNamespace],
79+
[$namespace, $testClass, snake_case($job), $jobNamespace],
8080
$content
8181
);
8282

0 commit comments

Comments
 (0)