[ErrorHandler][DebugClassLoader] Do not check Phake mocks classes

This commit is contained in:
Pierrick Charron 2021-06-21 16:27:34 -04:00
parent ffb0d2d424
commit 9ed93df77a
No known key found for this signature in database
GPG Key ID: 45DE4B6AB5825482
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ use Composer\InstalledVersions;
use Doctrine\Common\Persistence\Proxy as LegacyProxy;
use Doctrine\Persistence\Proxy;
use Mockery\MockInterface;
use Phake\IMock;
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
use PHPUnit\Framework\MockObject\MockObject;
use Prophecy\Prophecy\ProphecySubjectInterface;
@ -310,6 +311,7 @@ class DebugClassLoader
&& !is_subclass_of($symbols[$i], ProxyInterface::class)
&& !is_subclass_of($symbols[$i], LegacyProxy::class)
&& !is_subclass_of($symbols[$i], MockInterface::class)
&& !is_subclass_of($symbols[$i], IMock::class)
) {
$loader->checkClass($symbols[$i]);
}