From d191ed8de8d7f787de44b5cbce9d466b778762a8 Mon Sep 17 00:00:00 2001 From: lukepass Date: Thu, 3 Sep 2015 16:32:12 +0200 Subject: [PATCH] Added tests for multiple --exclude options --- tests/Acceptance/ExcludeTest.php | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/tests/Acceptance/ExcludeTest.php b/tests/Acceptance/ExcludeTest.php index 6596cbd..98b6e3a 100644 --- a/tests/Acceptance/ExcludeTest.php +++ b/tests/Acceptance/ExcludeTest.php @@ -28,6 +28,39 @@ public function itExcludesFileByName() $this->assertTagsFileHeaderIsCorrect(); $this->assertTagsFileContainsNoTagsFromFile('File2.php'); } + + /** + * @test + */ + public function itExcludesMultipleFilesByName() + { + $this->givenSourceFile('File1.php', <<<'EOS' +givenSourceFile('File2.php', <<<'EOS' +givenSourceFile('File3.php', <<<'EOS' +runPHPCtagsWithExcludes(array('File2.php', 'File3.php')); + + $this->assertTagsFileHeaderIsCorrect(); + $this->assertTagsFileContainsNoTagsFromFile('File2.php'); + $this->assertTagsFileContainsNoTagsFromFile('File3.php'); + } /** * @test