public function PHPUnit_Util_DeprecatedFeature::__toString

Build a string representation of the deprecated feature that was raised

Return value

string

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/DeprecatedFeature.php, line 86

Class

PHPUnit_Util_DeprecatedFeature
Class to hold the information about a deprecated feature that was used

Code

public function __toString() {
  $string = '';
  if (isset($this->traceInfo['file'])) {
    $string .= $this->traceInfo['file'];
    if (isset($this->traceInfo['line'])) {
      $string .= ':' . $this->traceInfo['line'] . ' - ';
    }
  }
  $string .= $this->message;
  return $string;
}