PHP 클래스 Phalcon\Test\ModelTestCase

상속: extends UnitTestCase
파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
emptyTable ( string $table ) : boolean Empties a table in the database.
populateTable ( string $table, null $records = null ) Populates a table with default data
truncateTable ( string $table ) : boolean Disables FOREIGN_KEY_CHECKS and truncates database table

보호된 메소드들

메소드 설명
setDb ( string $dbType = 'mysql' ) : void Sets the database adapter in the DI container
setUp ( ) This method is called before a test is executed.

메소드 상세

emptyTable() 공개 메소드

Empties a table in the database.
public emptyTable ( string $table ) : boolean
$table string
리턴 boolean

populateTable() 공개 메소드

Populates a table with default data
public populateTable ( string $table, null $records = null )
$table string
$records null

setDb() 보호된 메소드

Sets the database adapter in the DI container
protected setDb ( string $dbType = 'mysql' ) : void
$dbType string Sets the database type for the test
리턴 void

setUp() 보호된 메소드

This method is called before a test is executed.
protected setUp ( )

truncateTable() 공개 메소드

Disables FOREIGN_KEY_CHECKS and truncates database table
public truncateTable ( string $table ) : boolean
$table string table name
리턴 boolean result of truncate operation