You are here

public function PHPUnit_Framework_MockObject_Invocation_Static::toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php \PHPUnit_Framework_MockObject_Invocation_Static::toString()

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invocation/Static.php, line 86

Class

PHPUnit_Framework_MockObject_Invocation_Static
Represents a static invocation.

Code

public function toString() {
  $exporter = new Exporter();
  return sprintf('%s::%s(%s)', $this->className, $this->methodName, implode(', ', array_map(array(
    $exporter,
    'shortenedExport',
  ), $this->parameters)));
}