Skip to content

Commit

Permalink
Improve dirname usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Apr 24, 2020
1 parent fe5eacd commit e721cfd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ public function __construct(array $mockedNamespaces = array())
\PHPUnit_Util_Blacklist::$blacklistedClassNames[__CLASS__] = 2;
} elseif (method_exists(Blacklist::class, 'addDirectory')) {
(new BlackList())->getBlacklistedDirectories();
Blacklist::addDirectory(\dirname(\dirname((new \ReflectionClass(__CLASS__))->getFileName())));
Blacklist::addDirectory(\dirname((new \ReflectionClass(__CLASS__))->getFileName(), 2));
} else {
Blacklist::$blacklistedClassNames[__CLASS__] = 2;
}
Expand Down

0 comments on commit e721cfd

Please sign in to comment.