File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,39 @@ public function itExcludesFileByName()
2828 $ this ->assertTagsFileHeaderIsCorrect ();
2929 $ this ->assertTagsFileContainsNoTagsFromFile ('File2.php ' );
3030 }
31+
32+ /**
33+ * @test
34+ */
35+ public function itExcludesMultipleFilesByName ()
36+ {
37+ $ this ->givenSourceFile ('File1.php ' , <<<'EOS'
38+ <?php
39+
40+ $test = 1;
41+ EOS
42+ );
43+
44+ $ this ->givenSourceFile ('File2.php ' , <<<'EOS'
45+ <?php
46+
47+ $test = 1;
48+ EOS
49+ );
50+
51+ $ this ->givenSourceFile ('File3.php ' , <<<'EOS'
52+ <?php
53+
54+ $test = 1;
55+ EOS
56+ );
57+
58+ $ this ->runPHPCtagsWithExcludes (array ('File2.php ' , 'File3.php ' ));
59+
60+ $ this ->assertTagsFileHeaderIsCorrect ();
61+ $ this ->assertTagsFileContainsNoTagsFromFile ('File2.php ' );
62+ $ this ->assertTagsFileContainsNoTagsFromFile ('File3.php ' );
63+ }
3164
3265 /**
3366 * @test
You can’t perform that action at this time.
0 commit comments