TestSuite::getLabel PHP Method

getLabel() public method

Accessor for the test name for subclasses. If the suite wraps a single test case the label defaults to the name of that test.
public getLabel ( ) : string
return string Name of the test.
    public function getLabel()
    {
        if (!$this->label) {
            return $this->getSize() === 1 ? @get_class($this->test_cases[0]) : get_class($this);
        } else {
            return $this->label;
        }
    }