protected function PHPUnit_Framework_TestCase::getDataSetAsString

Gets the data set description of a TestCase.

@since Method available since Release 3.3.0

Parameters

boolean $includeData:

Return value

string

2 calls to PHPUnit_Framework_TestCase::getDataSetAsString()
PHPUnit_Framework_TestCase::getName in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
Gets the name of a TestCase.
PHPUnit_Framework_TestCase::toString in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
Returns a string representation of the test case.

File

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

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);
    }
    if ($includeData) {
      $buffer .= sprintf(' (%s)', $this
        ->dataToString($this->data));
    }
  }
  return $buffer;
}