From 8f477f1e32c700ce4e8274e656b4283df6c54b35 Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Wed, 19 May 2021 06:41:16 -0500 Subject: [PATCH] Setup a test for the LexicalEntryTrait --- tests/Unit/LexicalEntryTraitTest.php | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tests/Unit/LexicalEntryTraitTest.php diff --git a/tests/Unit/LexicalEntryTraitTest.php b/tests/Unit/LexicalEntryTraitTest.php new file mode 100644 index 0000000..a84b952 --- /dev/null +++ b/tests/Unit/LexicalEntryTraitTest.php @@ -0,0 +1,48 @@ + + * Date: 5/19/21 + * Time: 6:10 AM + */ +class LexicalEntryTraitTest extends TestCase +{ + public function testThatParseEntryReturnsCorrectlyFormattedVariables() + { + $testEntry = <<parseEntry($testEntry); + + $this->assertEquals($testLemma, $lemma); + $this->assertEquals($testCommentary, $commentary); + } +} + +class TestHandler +{ + use LexiconEntryTrait; +}