interface MethodNameMatch
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- interface \PHPUnit\Framework\MockObject\Builder\Identity
- interface \PHPUnit\Framework\MockObject\Builder\Stub extends \PHPUnit\Framework\MockObject\Builder\Identity
- interface \PHPUnit\Framework\MockObject\Builder\ParametersMatch extends \PHPUnit\Framework\MockObject\Builder\Stub
- interface \PHPUnit\Framework\MockObject\Builder\MethodNameMatch extends \PHPUnit\Framework\MockObject\Builder\ParametersMatch
- interface \PHPUnit\Framework\MockObject\Builder\ParametersMatch extends \PHPUnit\Framework\MockObject\Builder\Stub
- interface \PHPUnit\Framework\MockObject\Builder\Stub extends \PHPUnit\Framework\MockObject\Builder\Identity
Expanded class hierarchy of MethodNameMatch
All classes that implement MethodNameMatch
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Runtime/ Builder/ MethodNameMatch.php, line 19
Namespace
PHPUnit\Framework\MockObject\BuilderView source
interface MethodNameMatch extends ParametersMatch {
/**
* Adds a new method name match and returns the parameter match object for
* further matching possibilities.
*/
public function method(Constraint|string $constraint) : self;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
Identity::id | public | function | Sets the identification of the expectation to $id. | 1 |
MethodNameMatch::method | public | function | Adds a new method name match and returns the parameter match object for further matching possibilities. |
1 |
ParametersMatch::after | public | function | Defines the expectation which must occur before the current is valid. | 1 |
ParametersMatch::with | public | function | Sets the parameters to match for, each parameter to this function will be part of match. To perform specific matches or constraints create a new PHPUnit\Framework\Constraint\Constraint and use it for the parameter. If the parameter value is not a… |
1 |
ParametersMatch::withAnyParameters | public | function | Sets a rule which allows any kind of parameters. | 1 |
Stub::will | public | function | Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead. |