class PHPUnit_Framework_MockObject_Matcher_AnyParameters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php \PHPUnit_Framework_MockObject_Matcher_AnyParameters
Invocation matcher which allows any parameters to a method.
@since Class available since Release 1.0.0
Hierarchy
Expanded class hierarchy of PHPUnit_Framework_MockObject_Matcher_AnyParameters
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ AnyParameters.php, line 16
View source
class PHPUnit_Framework_MockObject_Matcher_AnyParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation {
/**
* @return string
*/
public function toString() {
return 'with any parameters';
}
/**
* @param PHPUnit_Framework_MockObject_Invocation $invocation
* @return bool
*/
public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
return true;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPUnit_Framework_MockObject_Matcher_AnyParameters:: |
public | function |
Overrides PHPUnit_Framework_MockObject_Matcher_Invocation:: |
|
PHPUnit_Framework_MockObject_Matcher_AnyParameters:: |
public | function |
Overrides PHPUnit_Framework_SelfDescribing:: |
|
PHPUnit_Framework_MockObject_Matcher_StatelessInvocation:: |
public | function |
Registers the invocation $invocation in the object as being invoked.
This will only occur after matches() returns true which means the
current invocation is the correct one. Overrides PHPUnit_Framework_MockObject_Matcher_Invocation:: |
|
PHPUnit_Framework_MockObject_Matcher_StatelessInvocation:: |
public | function |
Checks if the invocation $invocation matches the current rules. If it does
the matcher will get the invoked() method called which should check if an
expectation is met. Overrides PHPUnit_Framework_MockObject_Verifiable:: |
2 |