PHP 클래스 PHPUnit_Extensions_Database_DataSet_Specs_Csv, qcodo

The format of the spec string is as follows: |table1:filename.csv,table2:filename2.csv The first portion of the spec including the pipe symbol '|' is optional. If the pipe option is included than it may be preceded by up to four characters specifying values for the following arguments in order: delimiter (defaults to ',',) enclosure (defaults to '"',) escape (defaults to '"',). Any additional characters in the csv options will be discarded.
저자: Mike Lively ([email protected])
상속: implements PHPUnit_Extensions_Database_DataSet_ISpec
파일 보기 프로젝트 열기: qcodo/qcodo

공개 메소드들

메소드 설명
getDataSet ( string $dataSetSpec ) : PHPUnit_Extensions_Database_DataSet_CsvDataSet Creates CSV Data Set from a data set spec.

보호된 메소드들

메소드 설명
getCsvOptions ( string $dataSetSpec ) : array Returns CSV options.
getTableFileMap ( string $dataSetSpec ) : array Returns map of tables to files.

메소드 상세

getCsvOptions() 보호된 메소드

Returns an array containing the options that will be passed to the PHPUnit_Extensions_Database_DataSet_CsvDataSet constructor. The options are determined by the given $dataSetSpec.
protected getCsvOptions ( string $dataSetSpec ) : array
$dataSetSpec string
리턴 array

getDataSet() 공개 메소드

Creates CSV Data Set from a data set spec.
public getDataSet ( string $dataSetSpec ) : PHPUnit_Extensions_Database_DataSet_CsvDataSet
$dataSetSpec string
리턴 PHPUnit_Extensions_Database_DataSet_CsvDataSet

getTableFileMap() 보호된 메소드

Returns an associative array containing a mapping of tables (the key) to files (the values.) The tables and files are determined by the given $dataSetSpec
protected getTableFileMap ( string $dataSetSpec ) : array
$dataSetSpec string
리턴 array