From 5920ac814c0a72b8c348650b09597ed8793a54c9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 27 Oct 2023 22:07:28 +0300 Subject: replace some dirname horrors with a separate unit-tested method --- tests/SelfDirTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/SelfDirTest.php (limited to 'tests') 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 @@ +assertEquals( + dirname(__DIR__), # we're in (app)/tests/ + Config::get_self_dir() + ); + } +} -- cgit v1.2.3