You are here

public function PHP_CodeCoverage_FilterTest::testAddingADirectoryToTheBlacklistWorks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php \PHP_CodeCoverage_FilterTest::testAddingADirectoryToTheBlacklistWorks()

@covers PHP_CodeCoverage_Filter::addDirectoryToBlacklist @covers PHP_CodeCoverage_Filter::getBlacklist @depends testAddingAFileToTheBlacklistWorks

File

vendor/phpunit/php-code-coverage/tests/PHP/CodeCoverage/FilterTest.php, line 109

Class

PHP_CodeCoverage_FilterTest
Tests for the PHP_CodeCoverage_Filter class.

Code

public function testAddingADirectoryToTheBlacklistWorks() {
  $this->filter
    ->addDirectoryToBlacklist(TEST_FILES_PATH);
  $blacklist = $this->filter
    ->getBlacklist();
  sort($blacklist);
  $this
    ->assertEquals($this->files, $blacklist);
}