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 *