function TestCase::toString
Returns a string representation of the test case.
@internal This method is not covered by the backward compatibility promise for PHPUnit
Throws
Overrides SelfDescribing::toString
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 411
Class
- TestCase
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
public function toString() : string {
$buffer = sprintf('%s::%s', (new ReflectionClass($this))->getName(), $this->name);
return $buffer . $this->dataSetAsStringWithData();
}