From ff0c07a560f7587ed1c5ce340a8b5083e63f63fe Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Oct 2016 22:27:30 +0100 Subject: [PATCH] Start adding tests --- tests/GmailFilterTest.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/GmailFilterTest.php diff --git a/tests/GmailFilterTest.php b/tests/GmailFilterTest.php new file mode 100644 index 0000000..ad4a5c8 --- /dev/null +++ b/tests/GmailFilterTest.php @@ -0,0 +1,24 @@ +from(['foo@example.com']); + + // TODO: Does this need to be done each time? + $builder = (string) new GmailFilterBuilder($filters); + + $this->assertContains('', $builder); + } + + public function testMultipleFrom() { + $filters[] = GmailFilter::create() + ->from(['foo@example.com', 'bar@example.com']); + + // TODO: Does this need to be done each time? + $builder = (string) new GmailFilterBuilder($filters); + + $this->assertContains('', $builder); + } +}