Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7444756
FilterMapper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
FilterMapper.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
PHPUnit\TextUI\XmlConfiguration\CodeCoverage
;
use
SebastianBergmann\CodeCoverage\Filter
;
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final
class
FilterMapper
{
public
function
map
(
Filter
$filter
,
CodeCoverage
$configuration
):
void
{
foreach
(
$configuration
->
directories
()
as
$directory
)
{
$filter
->
includeDirectory
(
$directory
->
path
(),
$directory
->
suffix
(),
$directory
->
prefix
(),
);
}
foreach
(
$configuration
->
files
()
as
$file
)
{
$filter
->
includeFile
(
$file
->
path
());
}
foreach
(
$configuration
->
excludeDirectories
()
as
$directory
)
{
$filter
->
excludeDirectory
(
$directory
->
path
(),
$directory
->
suffix
(),
$directory
->
prefix
(),
);
}
foreach
(
$configuration
->
excludeFiles
()
as
$file
)
{
$filter
->
excludeFile
(
$file
->
path
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 17:45 (1 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/58/4201d26584d3e4b0ee900c57b4e4
Default Alt Text
FilterMapper.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment