Initial import from aternosorg/codex-minecraft
This commit is contained in:
22
test/src/Printer/TestModification.php
Normal file
22
test/src/Printer/TestModification.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Aternos\Codex\Test\Src\Printer;
|
||||
|
||||
use Aternos\Codex\Printer\Modification;
|
||||
|
||||
/**
|
||||
* Class TestModification
|
||||
*/
|
||||
class TestModification extends Modification
|
||||
{
|
||||
/**
|
||||
* Modify the given string and return it
|
||||
*
|
||||
* @param string $text
|
||||
* @return string
|
||||
*/
|
||||
public function modify(string $text): string
|
||||
{
|
||||
return str_replace("foo", "bar", $text);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user