PHP 클래스 PHPUnit_Extensions_Database_DataSet_YamlDataSet, qcodo

You can incrementally add CSV files as tables to your datasets
저자: Mike Lively ([email protected])
상속: extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$tables array

공개 메소드들

메소드 설명
__construct ( string $yamlFile ) Creates a new YAML dataset
addYamlFile ( string $yamlFile ) Adds a new yaml file to the dataset.
write ( PHPUnit_Extensions_Database_DataSet_IDataSet $dataset, string $filename ) Saves a given $dataset to $filename in YAML format

보호된 메소드들

메소드 설명
createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.

비공개 메소드들

메소드 설명
getColumns ( $rows ) Creates a unique list of columns from all the rows in a table.

메소드 상세

__construct() 공개 메소드

Creates a new YAML dataset
public __construct ( string $yamlFile )
$yamlFile string

addYamlFile() 공개 메소드

Adds a new yaml file to the dataset.
public addYamlFile ( string $yamlFile )
$yamlFile string

createIterator() 보호된 메소드

Creates an iterator over the tables in the data set. If $reverse is true a reverse iterator will be returned.
protected createIterator ( boolean $reverse = FALSE ) : PHPUnit_Extensions_Database_DataSet_ITableIterator
$reverse boolean
리턴 PHPUnit_Extensions_Database_DataSet_ITableIterator

write() 공개 정적인 메소드

Saves a given $dataset to $filename in YAML format
public static write ( PHPUnit_Extensions_Database_DataSet_IDataSet $dataset, string $filename )
$dataset PHPUnit_Extensions_Database_DataSet_IDataSet
$filename string

프로퍼티 상세

$tables 보호되어 있는 프로퍼티

protected array $tables
리턴 array