interface MockObject
@method InvocationMocker method($constraint)
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- interface \PHPUnit\Framework\MockObject\Stub
- interface \PHPUnit\Framework\MockObject\MockObject extends \PHPUnit\Framework\MockObject\Stub
Expanded class hierarchy of MockObject
All classes that implement MockObject
5 files declare their use of MockObject
- DebugClassLoader.php in vendor/
symfony/ error-handler/ DebugClassLoader.php - Generator.php in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Generator/ Generator.php - MockMethodCallRule.php in vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ MockMethodCallRule.php - MockObjectDynamicReturnTypeExtension.php in vendor/
phpstan/ phpstan-phpunit/ src/ Type/ PHPUnit/ MockObjectDynamicReturnTypeExtension.php - TestCase.php in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php
1 string reference to 'MockObject'
- Generator::generate in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Generator/ Generator.php - @todo This method is only public because it is used to test generated code in PHPT tests
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Interface/ MockObject.php, line 20
Namespace
PHPUnit\Framework\MockObjectView source
interface MockObject extends Stub {
public function expects(InvocationOrder $invocationRule) : InvocationMocker;
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MockObject::expects | public | function |