Invocation matcher which allos any parameters to a method.
@package PHPUnit_MockObject @author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @version Release: @package_version@ @link http://github.com/sebastianbergmann/phpunit-mock-objects @since Class available since Release 1.0.0
Expanded class hierarchy of PHPUnit_Framework_MockObject_Matcher_AnyParameters
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 boolean
*/
public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
return TRUE;
}
}
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:: |
1 |