public function PHPUnit_Framework_TestCase::getName

Gets the name of a TestCase.

Parameters

boolean $withDataSet:

Return value

string

2 calls to PHPUnit_Framework_TestCase::getName()
PHPUnit_Framework_TestCase::getSize in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php
Returns the size of the test.
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 355

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function getName($withDataSet = TRUE) {
  if ($withDataSet) {
    return $this->name . $this
      ->getDataSetAsString(FALSE);
  }
  else {
    return $this->name;
  }
}