8000 minor #36568 [PhpUnitBridge] Improve dirname usage (Jean85) · symfony/symfony@b3cdf5c · GitHub
[go: up one dir, main page]

Skip to content

Commit b3cdf5c

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines 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