Skip to content

Commit cd7f7d3

Browse files
committed
[ErrorHandler][DebugClassLoader] Do not check Phake mocks classes
1 parent 310a756 commit cd7f7d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)