From 89fcc648608bdbaf078e8b1d7d78d8980fb3ddad Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 27 Feb 2025 12:50:03 +0100 Subject: [PATCH] [TASK] Add the first basic functional tests for `Parser` Part of #757 --- tests/Functional/ParserTest.php | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Functional/ParserTest.php diff --git a/tests/Functional/ParserTest.php b/tests/Functional/ParserTest.php new file mode 100644 index 00000000..982bb3a2 --- /dev/null +++ b/tests/Functional/ParserTest.php @@ -0,0 +1,39 @@ +parse(); + + self::assertInstanceOf(Document::class, $result); + } + + /** + * @test + */ + public function parseWithOneRuleSetReturnsDocument(): void + { + $parser = new Parser('.thing { }'); + + $result = $parser->parse(); + + self::assertInstanceOf(Document::class, $result); + } +}