public function PHPUnit_Framework_MockObject_Stub_Exception::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php \PHPUnit_Framework_MockObject_Stub_Exception::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/ Exception.php, line 32
Class
- PHPUnit_Framework_MockObject_Stub_Exception
- Stubs a method by raising a user-defined exception.
Code
public function toString() {
$exporter = new Exporter();
return sprintf('raise user-specified exception %s', $exporter
->export($this->exception));
}