Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getExcludedDirectories example
private
$wasSkipped
=
[
]
;
private
$isSkipped
=
[
]
;
private
$runsInSeparateProcess
= false;
private
$checkNumAssertions
= false;
/** * @param array $mockedNamespaces List of namespaces, indexed by mocked features (time-sensitive or dns-sensitive) */
public
function
__construct
(
array
$mockedNamespaces
=
[
]
)
{
if
(
class_exists
(
ExcludeList::
class
)
)
{
(
new
ExcludeList
(
)
)
->
getExcludedDirectories
(
)
;
ExcludeList::
addDirectory
(
\
dirname
(
(
new
\
ReflectionClass
(
__CLASS__
)
)
->
getFileName
(
)
, 2
)
)
;
}
elseif
(
method_exists
(
Blacklist::
class
, 'addDirectory'
)
)
{
(
new
BlackList
(
)
)
->
getBlacklistedDirectories
(
)
;
Blacklist::
addDirectory
(
\
dirname
(
(
new
\
ReflectionClass
(
__CLASS__
)
)
->
getFileName
(
)
, 2
)
)
;
}
else
{
Blacklist::
$blacklistedClassNames
[
__CLASS__
]
= 2;
}
$enableDebugClassLoader
=
class_exists
(
DebugClassLoader::
class
)
;
foreach
(
$mockedNamespaces
as
$type
=>
$namespaces
)
{