Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8391e0b

Browse files
committed
bug #41776 [ErrorHandler] [DebugClassLoader] Do not check Phake mocks classes (adoy)
This PR was merged into the 4.4 branch. Discussion ---------- [ErrorHandler] [DebugClassLoader] Do not check Phake mocks classes | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | [Phake Issue #300](phake/phake#300) | License | MIT | Doc PR | - Similar issue as #38373 but with Phake mocking framework Commits ------- 9ed93df [ErrorHandler][DebugClassLoader] Do not check Phake mocks classes
2 parents 8a32526 + 9ed93df commit 8391e0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
1616
use Doctrine\Persistence\Proxy;
1717
use Mockery\MockInterface;
18+
use Phake\IMock;
1819
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
1920
use PHPUnit\Framework\MockObject\MockObject;
2021
use Prophecy\Prophecy\ProphecySubjectInterface;
@@ -310,6 +311,7 @@ public static function checkClasses(): bool
310311
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
311312
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
312313
&& !is_subclass_of($symbols[$i], MockInterface::class)
314+
&& !is_subclass_of($symbols[$i], IMock::class)
313315
) {
314316
$loader->checkClass($symbols[$i]);
315317
}

0 commit comments

Comments
 (0)