public function PHPUnit_Framework_MockObject_Matcher_Parameters::toString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/Parameters.php \PHPUnit_Framework_MockObject_Matcher_Parameters::toString()
Return value
string
Overrides PHPUnit_Framework_SelfDescribing::toString
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Matcher/ Parameters.php, line 51
Class
- PHPUnit_Framework_MockObject_Matcher_Parameters
- Invocation matcher which looks for specific parameters in the invocations.
Code
public function toString() {
$text = 'with parameter';
foreach ($this->parameters as $index => $parameter) {
if ($index > 0) {
$text .= ' and';
}
$text .= ' ' . $index . ' ' . $parameter
->toString();
}
return $text;
}