PHPUnit_Extensions_Database_DataSet_YamlDataSet::getColumns PHP Méthode

getColumns() private méthode

If the table is defined another time in the Yaml, and if the Yaml parser could return the multiple occerrences, then this would be insufficient unless we grouped all the occurences of the table into onwe row set. sfYaml, however, does not provide multiple tables with the same name, it only supplies the last table.
private getColumns ( $rows )
    private function getColumns($rows)
    {
        $columns = array();
        foreach ($rows as $row) {
            $columns = array_merge($columns, array_keys($row));
        }
        return array_values(array_unique($columns));
    }
PHPUnit_Extensions_Database_DataSet_YamlDataSet