From ef0a09b6400c7f1fda284e22ea9774e88714d41d Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sat, 12 Sep 2026 07:03:04 +0200 Subject: [PATCH] Fix default tag directory configuration --- src/TagEngine.php | 1 - tests/TagEngine/TagEngineTest.php | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/TagEngine.php b/src/TagEngine.php index 8f649d3..4ada3c2 100644 --- a/src/TagEngine.php +++ b/src/TagEngine.php @@ -53,7 +53,6 @@ class TagEngine */ public function __construct(array $options = []) { - $this->options['tag_directories'] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Tags' . DIRECTORY_SEPARATOR; if ($options) { $this->options = array_merge($this->options, $options); } diff --git a/tests/TagEngine/TagEngineTest.php b/tests/TagEngine/TagEngineTest.php index 5d663b2..e44805d 100644 --- a/tests/TagEngine/TagEngineTest.php +++ b/tests/TagEngine/TagEngineTest.php @@ -12,6 +12,13 @@ */ class TagEngineTest extends TestCase { + public function testCanBeCreatedWithDefaultOptions(): void + { + $engine = new TagEngine(); + + $this->assertSame('
Content
', $engine->parse('
Content
')); + } + /** * Test singleton instance creation *