summaryrefslogtreecommitdiff
path: root/tests/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.php')
-rw-r--r--tests/test.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/test.php b/tests/test.php
index ed45d3e..fcfac0e 100644
--- a/tests/test.php
+++ b/tests/test.php
@@ -6,18 +6,18 @@ require("code.php");
use \kch42\ste;
class TestStorage implements ste\StorageAccess {
- public function load($tpl, &$mode) {
- $mode = ste\StorageAccess::MODE_SOURCE;
- return file_get_contents($tpl);
- }
-
- public function save($tpl, $data, $mode) {
- if($mode != ste\StorageAccess::MODE_TRANSCOMPILED) {
- return;
- }
-
- file_put_contents("$tpl.transc.php", $data);
- }
+ public function load($tpl, &$mode) {
+ $mode = ste\StorageAccess::MODE_SOURCE;
+ return file_get_contents($tpl);
+ }
+
+ public function save($tpl, $data, $mode) {
+ if($mode != ste\StorageAccess::MODE_TRANSCOMPILED) {
+ return;
+ }
+
+ file_put_contents("$tpl.transc.php", $data);
+ }
}
$ste = new ste\STECore(new TestStorage());