Skip to content

Commit

Permalink
Create TestMethodNameFormatter.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Jan 29, 2024
1 parent 5a3c152 commit e615a15
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Formatter/TestMethodNameFormatter.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace Ghostwriter\Testify\Formatter;

use function sprintf;

final readonly class TestMethodNameFormatter
{
public function format(string $methodName): string
{
return sprintf('test%s', $methodName);
}
}

0 comments on commit e615a15

Please sign in to comment.