Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b3cdf5c

Browse filesBrowse files
committed
minor #36568 [PhpUnitBridge] Improve dirname usage (Jean85)
This PR was merged into the 3.4 branch. Discussion ---------- [PhpUnitBridge] Improve dirname usage | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #36499 | License | MIT This is a very small performance improvement on top of #36539 Commits ------- e721cfd Improve dirname usage
2 parents fe5eacd + e721cfd commit b3cdf5c
Copy full SHA for b3cdf5c

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(array $mockedNamespaces = array())
4949
\PHPUnit_Util_Blacklist::$blacklistedClassNames[__CLASS__] = 2;
5050
} elseif (method_exists(Blacklist::class, 'addDirectory')) {
5151
(new BlackList())->getBlacklistedDirectories();
52-
Blacklist::addDirectory(\dirname(\dirname((new \ReflectionClass(__CLASS__))->getFileName())));
52+
Blacklist::addDirectory(\dirname((new \ReflectionClass(__CLASS__))->getFileName(), 2));
5353
} else {
5454
Blacklist::$blacklistedClassNames[__CLASS__] = 2;
5555
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.