Filter for whitelisting of code coverage information.
◆ addDirectoryToWhitelist()
SebastianBergmann\CodeCoverage\Filter::addDirectoryToWhitelist |
( |
|
$directory, |
|
|
|
$suffix = '.php' , |
|
|
|
$prefix = '' |
|
) |
| |
Adds a directory to the whitelist (recursively).
- Parameters
-
string | $directory | |
string | $suffix | |
string | $prefix | |
◆ addFilesToWhitelist()
SebastianBergmann\CodeCoverage\Filter::addFilesToWhitelist |
( |
array |
$files | ) |
|
Adds files to the whitelist.
- Parameters
-
◆ addFileToWhitelist()
SebastianBergmann\CodeCoverage\Filter::addFileToWhitelist |
( |
|
$filename | ) |
|
Adds a file to the whitelist.
- Parameters
-
◆ getWhitelist()
SebastianBergmann\CodeCoverage\Filter::getWhitelist |
( |
| ) |
|
Returns the list of whitelisted files.
- Returns
- array
◆ getWhitelistedFiles()
SebastianBergmann\CodeCoverage\Filter::getWhitelistedFiles |
( |
| ) |
|
Returns the whitelisted files.
- Returns
- array
◆ hasWhitelist()
SebastianBergmann\CodeCoverage\Filter::hasWhitelist |
( |
| ) |
|
Returns whether this filter has a whitelist.
- Returns
- bool
◆ isFile()
SebastianBergmann\CodeCoverage\Filter::isFile |
( |
|
$filename | ) |
|
Checks whether a filename is a real filename.
- Parameters
-
- Returns
- bool
◆ isFiltered()
SebastianBergmann\CodeCoverage\Filter::isFiltered |
( |
|
$filename | ) |
|
Checks whether or not a file is filtered.
- Parameters
-
- Returns
- bool
◆ removeDirectoryFromWhitelist()
SebastianBergmann\CodeCoverage\Filter::removeDirectoryFromWhitelist |
( |
|
$directory, |
|
|
|
$suffix = '.php' , |
|
|
|
$prefix = '' |
|
) |
| |
Removes a directory from the whitelist (recursively).
- Parameters
-
string | $directory | |
string | $suffix | |
string | $prefix | |
◆ removeFileFromWhitelist()
SebastianBergmann\CodeCoverage\Filter::removeFileFromWhitelist |
( |
|
$filename | ) |
|
Removes a file from the whitelist.
- Parameters
-
◆ setWhitelistedFiles()
SebastianBergmann\CodeCoverage\Filter::setWhitelistedFiles |
( |
|
$whitelistedFiles | ) |
|
Sets the whitelisted files.
- Parameters
-
The documentation for this class was generated from the following file:
- vendor/phpunit/php-code-coverage/src/Filter.php