summaryrefslogtreecommitdiff
path: root/tests/SelfDirTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SelfDirTest.php')
-rw-r--r--tests/SelfDirTest.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/SelfDirTest.php b/tests/SelfDirTest.php
new file mode 100644
index 000000000..5b7396a66
--- /dev/null
+++ b/tests/SelfDirTest.php
@@ -0,0 +1,12 @@
+<?php
+
+use PHPUnit\Framework\TestCase;
+
+final class ConfigTest extends TestCase {
+ public function test_get_self_dir(): void {
+ $this->assertEquals(
+ dirname(__DIR__), # we're in (app)/tests/
+ Config::get_self_dir()
+ );
+ }
+}