public function PHPUnit_Framework_TestCase::toString

Returns a string representation of the test case.

Return value

string

Overrides PHPUnit_Framework_SelfDescribing::toString

1 call to PHPUnit_Framework_TestCase::toString()
Framework_TestCaseTest::testCaseToString in drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php
1 method overrides PHPUnit_Framework_TestCase::toString()
PHPUnit_Framework_Warning::toString in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Warning.php
Returns a string representation of the test case.

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 312

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function toString() {
  $class = new ReflectionClass($this);
  $buffer = sprintf('%s::%s', $class->name, $this
    ->getName(FALSE));
  return $buffer . $this
    ->getDataSetAsString();
}