public function PHP_CodeCoverage_Filter::addFileToWhitelist in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Filter.php \PHP_CodeCoverage_Filter::addFileToWhitelist()
Adds a file to the whitelist.
Parameters
string $filename:
2 calls to PHP_CodeCoverage_Filter::addFileToWhitelist()
- PHP_CodeCoverage_Filter::addDirectoryToWhitelist in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Filter.php - Adds a directory to the whitelist (recursively).
- PHP_CodeCoverage_Filter::addFilesToWhitelist in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Filter.php - Adds files to the whitelist.
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Filter.php, line 124
Class
- PHP_CodeCoverage_Filter
- Filter for blacklisting and whitelisting of code coverage information.
Code
public function addFileToWhitelist($filename) {
$this->whitelistedFiles[realpath($filename)] = true;
}