PHP 클래스 PHPUnit_Extensions_Database_DataSet_Specs_DbQuery, qcodo

This spec class requires a list of databases to be set to the object before it can return a list of databases. The format of the spec string is as follows: ::: The db label should be equal to one of the keys in the array of databases passed to setDatabases(). The schema should be the primary schema you will be running the sql query against. The table name should be set to what you would like the table name in the dataset to be. The sql is the query you want to use to generate the table columns and data. The column names in the table will be identical to the column aliases in the query.
저자: Mike Lively ([email protected])
상속: implements PHPUnit_Extensions_Database_DataSet_ISpec, implements PHPUnit_Extensions_Database_IDatabaseListConsumer
파일 보기 프로젝트 열기: qcodo/qcodo

보호된 프로퍼티들

프로퍼티 타입 설명
$databases array

공개 메소드들

메소드 설명
getDataSet ( string $dataSetSpec ) : PHPUnit_Extensions_Database_DataSet_DefaultDataSet Creates a Default Data Set with a query table from a data set spec.
setDatabases ( array $databases ) Sets the database for the spec

메소드 상세

getDataSet() 공개 메소드

Creates a Default Data Set with a query table from a data set spec.
public getDataSet ( string $dataSetSpec ) : PHPUnit_Extensions_Database_DataSet_DefaultDataSet
$dataSetSpec string
리턴 PHPUnit_Extensions_Database_DataSet_DefaultDataSet

setDatabases() 공개 메소드

Sets the database for the spec
public setDatabases ( array $databases )
$databases array

프로퍼티 상세

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

protected array $databases
리턴 array