Skip to content

Commit

Permalink
Merge pull request #61 from lukepass/patch-1
Browse files Browse the repository at this point in the history
Added tests for multiple --exclude options
  • Loading branch information
gianarb authored Mar 17, 2017
2 parents f0e1dbe + d191ed8 commit 7a483dc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/Acceptance/ExcludeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,39 @@ public function itExcludesFileByName()
$this->assertTagsFileHeaderIsCorrect();
$this->assertTagsFileContainsNoTagsFromFile('File2.php');
}

/**
* @test
*/
public function itExcludesMultipleFilesByName()
{
$this->givenSourceFile('File1.php', <<<'EOS'
<?php
$test = 1;
EOS
);

$this->givenSourceFile('File2.php', <<<'EOS'
<?php
$test = 1;
EOS
);

$this->givenSourceFile('File3.php', <<<'EOS'
<?php
$test = 1;
EOS
);

$this->runPHPCtagsWithExcludes(array('File2.php', 'File3.php'));

$this->assertTagsFileHeaderIsCorrect();
$this->assertTagsFileContainsNoTagsFromFile('File2.php');
$this->assertTagsFileContainsNoTagsFromFile('File3.php');
}

/**
* @test
Expand Down

0 comments on commit 7a483dc

Please sign in to comment.