PHP Class Pheasant\Tests\MysqlTestCase

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: lox/pheasant Class Usage Examples

Méthodes publiques

Méthode Description
assertConnectionExists ( )
assertRowCount ( $count, $sql )
assertTableExists ( $table )
connection ( ) Helper to return a connection
initialize ( $class, $callback = null ) Helper to initialize a domain object
migrate ( $tableName, $schema )
setUp ( )
table ( $name, $columns ) Helper to drop and re-create a table
tearDown ( )

Method Details

assertConnectionExists() public méthode

assertRowCount() public méthode

public assertRowCount ( $count, $sql )

assertTableExists() public méthode

public assertTableExists ( $table )

connection() public méthode

Helper to return a connection
public connection ( )

initialize() public méthode

Helper to initialize a domain object
public initialize ( $class, $callback = null )

migrate() public méthode

public migrate ( $tableName, $schema )

setUp() public méthode

public setUp ( )

table() public méthode

Helper to drop and re-create a table
public table ( $name, $columns )

tearDown() public méthode

public tearDown ( )