PhpBench\Report\Generator\Table\Row::getNames PHP 메소드

getNames() 공개 메소드

Return the cell names for this row.
public getNames ( ) : string[]
리턴 string[]
    public function getNames()
    {
        return array_keys($this->getArrayCopy());
    }

Usage Example

예제 #1
0
 /**
  * It should return the names.
  */
 public function testNames()
 {
     $row = new Row(['one' => 1, 'two' => 2]);
     $this->assertEquals(['one', 'two'], $row->getNames());
 }