Skip to content

Commit 7a483dc

Browse files
authored
Merge pull request #61 from lukepass/patch-1
Added tests for multiple --exclude options
2 parents f0e1dbe + d191ed8 commit 7a483dc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

tests/Acceptance/ExcludeTest.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)