PHP Class Visualphpunit\Core\Test

Author: Johannes Skov Frandsen ([email protected])
Show file 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
getTests ( Doctrine\DBAL\Connection $connection, DateTime $start, DateTime $end, String $unit ) : mixed[] Get test per day between dates
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

getTests() public static method

Get test per day between dates
public static getTests ( Doctrine\DBAL\Connection $connection, DateTime $start, DateTime $end, String $unit ) : mixed[]
$connection Doctrine\DBAL\Connection
$start DateTime
$end DateTime
$unit String
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