PHP Class Visualphpunit\Core\Suite

Author: Johannes Skov Frandsen ([email protected])
Mostrar archivo Open project: visualphpunit/visualphpunit Class Usage Examples

Public Methods

Method Description
createTable ( Doctrine\DBAL\Connection $connection ) : boolean Create the table if it dos not exists
dropTable ( Doctrine\DBAL\Connection $connection ) : boolean Drop the table if it exists
getSnapshots ( Doctrine\DBAL\Connection $connection ) : mixed[] Get all test suite results
getSuite ( Doctrine\DBAL\Connection $connection, integer $id ) : mixed[] Get test suite results
store ( Doctrine\DBAL\Connection $connection, mixed[] $result ) : boolean Store a test suite result
truncateTable ( Doctrine\DBAL\Connection $connection ) : boolean Truncate the table

Method Details

createTable() public static method

Create the table if it dos not exists
public static createTable ( Doctrine\DBAL\Connection $connection ) : boolean
$connection Doctrine\DBAL\Connection
return boolean

dropTable() public static method

Drop the table if it exists
public static dropTable ( Doctrine\DBAL\Connection $connection ) : boolean
$connection Doctrine\DBAL\Connection
return boolean

getSnapshots() public static method

Get all test suite results
public static getSnapshots ( Doctrine\DBAL\Connection $connection ) : mixed[]
$connection Doctrine\DBAL\Connection
return mixed[]

getSuite() public static method

Get test suite results
public static getSuite ( Doctrine\DBAL\Connection $connection, integer $id ) : mixed[]
$connection Doctrine\DBAL\Connection
$id integer
return mixed[]

store() public static method

Store a test suite result
public static store ( Doctrine\DBAL\Connection $connection, mixed[] $result ) : boolean
$connection Doctrine\DBAL\Connection
$result mixed[]
return boolean

truncateTable() public static method

Truncate the table
public static truncateTable ( Doctrine\DBAL\Connection $connection ) : boolean
$connection Doctrine\DBAL\Connection
return boolean