Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0953da commit 2630c13Copy full SHA for 2630c13
src/Symfony/Bridge/PhpUnit/ClockMock.php
@@ -77,6 +77,8 @@ public static function register($class)
77
if (0 < strpos($class, '\\Tests\\')) {
78
$ns = str_replace('\\Tests\\', '\\', $class);
79
$mockedNs[] = substr($ns, 0, strrpos($ns, '\\'));
80
+ } elseif (0 === strpos($class, 'Tests\\')) {
81
+ $mockedNs[] = substr($class, 6, strrpos($class, '\\') - 6);
82
}
83
foreach ($mockedNs as $ns) {
84
if (function_exists($ns.'\time')) {
0 commit comments