PHP 클래스 PHPUnit_Extensions_Database_DataSet_ReplacementTable, qcodo

저자: Mike Lively ([email protected])
상속: implements PHPUnit_Extensions_Database_DataSet_ITable
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fullReplacements array
$subStrReplacements array
$table PHPUnit_Extensions_Database_DataSet_ITable

공개 메소드들

메소드 설명
__construct ( PHPUnit_Extensions_Database_DataSet_ITable $table, array $fullReplacements = [], array $subStrReplacements = [] ) Creates a new replacement table
__toString ( )
addFullReplacement ( string $value, string $replacement ) Adds a new full replacement
addSubStrReplacement ( string $value, string $replacement ) Adds a new substr replacement
assertEquals ( PHPUnit_Extensions_Database_DataSet_ITable $other ) Asserts that the given table matches this table.
getRow ( integer $row ) : array Returns the an associative array keyed by columns for the given row.
getRowCount ( ) : integer Returns the number of rows in this table.
getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData Returns the table's meta data.
getValue ( integer $row, integer $column ) Returns the value for the given column on the given row.

보호된 메소드들

메소드 설명
getReplacedValue ( $value )
rowToString ( array $row )

메소드 상세

__construct() 공개 메소드

Creates a new replacement table
public __construct ( PHPUnit_Extensions_Database_DataSet_ITable $table, array $fullReplacements = [], array $subStrReplacements = [] )
$table PHPUnit_Extensions_Database_DataSet_ITable
$fullReplacements array
$subStrReplacements array

__toString() 공개 메소드

public __toString ( )

addFullReplacement() 공개 메소드

Full replacements will only replace values if the FULL value is a match
public addFullReplacement ( string $value, string $replacement )
$value string
$replacement string

addSubStrReplacement() 공개 메소드

Substr replacements will replace all occurances of the substr in every column
public addSubStrReplacement ( string $value, string $replacement )
$value string
$replacement string

assertEquals() 공개 메소드

Asserts that the given table matches this table.
public assertEquals ( PHPUnit_Extensions_Database_DataSet_ITable $other )
$other PHPUnit_Extensions_Database_DataSet_ITable

getReplacedValue() 보호된 메소드

protected getReplacedValue ( $value )

getRow() 공개 메소드

Returns the an associative array keyed by columns for the given row.
public getRow ( integer $row ) : array
$row integer
리턴 array

getRowCount() 공개 메소드

Returns the number of rows in this table.
public getRowCount ( ) : integer
리턴 integer

getTableMetaData() 공개 메소드

Returns the table's meta data.
public getTableMetaData ( ) : PHPUnit_Extensions_Database_DataSet_ITableMetaData
리턴 PHPUnit_Extensions_Database_DataSet_ITableMetaData

getValue() 공개 메소드

Returns the value for the given column on the given row.
public getValue ( integer $row, integer $column )
$row integer
$column integer

rowToString() 보호된 메소드

protected rowToString ( array $row )
$row array

프로퍼티 상세

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

protected array $fullReplacements
리턴 array

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

protected array $subStrReplacements
리턴 array

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

protected PHPUnit_Extensions_Database_DataSet_ITable $table
리턴 PHPUnit_Extensions_Database_DataSet_ITable