public function PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/ConsecutiveCalls.php \PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls::toString()
Returns a string representation of the object.
Return value
string
Overrides PHPUnit_Framework_SelfDescribing::toString
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Stub/ ConsecutiveCalls.php, line 39
Class
- PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls
- Stubs a method by returning a user-defined stack of values.
Code
public function toString() {
$exporter = new Exporter();
return sprintf('return user-specified value %s', $exporter
->export($this->value));
}