annotate src/Test.php @ 16:e577dac6c913 development

Simple test
author Luka Sitas <sitas.luka.97@gmail.com>
date Mon, 23 Sep 2024 20:32:05 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
1 <?php
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
2
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
3
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
4 require_once("Helpers/FileModifier.php");
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
5
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
6 $fm = new Wizzard\MagicForger\Helpers\FileModifier(__DIR__ . "/tmp.php");
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
7 $fm->insert("I HAVE BEEN INSERTED", "{{ INSERT_1 }}");
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
8 $fm->replace("I HAVE BEEN REPLACED", "{{ REPLACE_1 }}");
e577dac6c913 Simple test
Luka Sitas <sitas.luka.97@gmail.com>
parents:
diff changeset
9 $fm->write_to_path(__DIR__ . "/tmp2.php");