public function PHPUnit_Framework_TestCase::toString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \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 vendor/
phpunit/ phpunit/ tests/ Framework/ TestCaseTest.php
3 methods override PHPUnit_Framework_TestCase::toString()
- PHPUnit_Framework_IncompleteTestCase::toString in vendor/
phpunit/ phpunit/ src/ Framework/ IncompleteTestCase.php - Returns a string representation of the test case.
- PHPUnit_Framework_SkippedTestCase::toString in vendor/
phpunit/ phpunit/ src/ Framework/ SkippedTestCase.php - Returns a string representation of the test case.
- PHPUnit_Framework_Warning::toString in vendor/
phpunit/ phpunit/ src/ Framework/ Warning.php - Returns a string representation of the test case.
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 289
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();
}