protected function PHPUnit_Framework_TestCase::getDataSetAsString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getDataSetAsString()
 
Gets the data set description of a TestCase.
@since Method available since Release 3.3.0
Parameters
bool $includeData:
Return value
string
2 calls to PHPUnit_Framework_TestCase::getDataSetAsString()
- PHPUnit_Framework_TestCase::getName in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php  - Gets the name of a TestCase.
 - PHPUnit_Framework_TestCase::toString in vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php  - Returns a string representation of the test case.
 
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1705  
Class
- PHPUnit_Framework_TestCase
 - A TestCase defines the fixture to run multiple tests.
 
Code
protected function getDataSetAsString($includeData = true) {
  $buffer = '';
  if (!empty($this->data)) {
    if (is_int($this->dataName)) {
      $buffer .= sprintf(' with data set #%d', $this->dataName);
    }
    else {
      $buffer .= sprintf(' with data set "%s"', $this->dataName);
    }
    $exporter = new Exporter();
    if ($includeData) {
      $buffer .= sprintf(' (%s)', $exporter
        ->shortenedRecursiveExport($this->data));
    }
  }
  return $buffer;
}