PHPUnit_Framework_TestFailure::getTestName PHP Метод

getTestName() публичный Метод

Returns the name of the failing test (including data set, if any).
public getTestName ( ) : string
Результат string
    public function getTestName()
    {
        return $this->testName;
    }

Usage Example

 /**
  * @param PHPUnit_Framework_TestFailure $defect
  * @param int                           $count
  */
 protected function printDefectHeader(PHPUnit_Framework_TestFailure $defect, $count)
 {
     $this->write(sprintf("\n%d) %s\n", $count, $defect->getTestName()));
 }