aboutsummaryrefslogtreecommitdiff
path: root/tests/mocks/MockCompiler.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mocks/MockCompiler.php')
-rw-r--r--tests/mocks/MockCompiler.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/mocks/MockCompiler.php b/tests/mocks/MockCompiler.php
new file mode 100644
index 0000000..89db68f
--- /dev/null
+++ b/tests/mocks/MockCompiler.php
@@ -0,0 +1,34 @@
+<?php
+declare(strict_types=1);
+
+/**
+ * @author: Alexander Kiryukhin <alexander@kiryukhin.su>
+ * @license: MIT
+ */
+
+use NeonXP\Dotenv\Compiler\CompilerInterface;
+use NeonXP\Dotenv\Types\KeyValue;
+
+/**
+ * Class MockCompiler
+ */
+class MockCompiler implements CompilerInterface
+{
+
+ /**
+ * @param KeyValue[] $collection
+ */
+ function setRawCollection(array $collection): void
+ {
+ // Do nothing
+ }
+
+ /**
+ * @param KeyValue $keyValue
+ * @return KeyValue
+ */
+ function compileKeyValue(KeyValue $keyValue): KeyValue
+ {
+ return $keyValue;
+ }
+} \ No newline at end of file