You are here

public function PHPUnit_Framework_TestCase::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::getName()

Gets the name of a TestCase.

Parameters

bool $withDataSet:

Return value

string

4 calls to PHPUnit_Framework_TestCase::getName()
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_TestCase::getSize in vendor/phpunit/phpunit/src/Framework/TestCase.php
Returns the size of the test.
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 332

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;
  }
}