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