PDOTest
extends AbstractTest
in package
Uses
DbTestHelperTrait
Table of Contents
- $driver : mixed
- Should be "mysql", "pgsql", "sqlite".
- createSchema() : mixed
- Uses .sql files from the examples directory to initialize the database.
- dropTables() : mixed
- Drops tables, if they exist.
- getBackend() : AbstractBackend
- getDb() : PDO
- Returns a fully configured PDO object.
- getPDO() : PDO
- Alias for getDb.
- tearDown() : void
- testGetLocks() : mixed
- testGetLocksChildren() : mixed
- testGetLocksParent() : mixed
- testGetLocksParentDepth0() : mixed
- testLockRefresh() : mixed
- testSetup() : mixed
- testUnlock() : mixed
- testUnlockUnknownToken() : mixed
Properties
$driver
Should be "mysql", "pgsql", "sqlite".
public
mixed
$driver
= null
Methods
createSchema()
Uses .sql files from the examples directory to initialize the database.
public
createSchema(string $schemaName) : mixed
Parameters
- $schemaName : string
Return values
mixed —dropTables()
Drops tables, if they exist.
public
dropTables(string|array<string|int, string> $tableNames) : mixed
Parameters
- $tableNames : string|array<string|int, string>
Return values
mixed —getBackend()
public
getBackend() : AbstractBackend
Return values
AbstractBackend —getDb()
Returns a fully configured PDO object.
public
getDb() : PDO
Return values
PDO —getPDO()
Alias for getDb.
public
getPDO() : PDO
Return values
PDO —tearDown()
public
tearDown() : void
Return values
void —testGetLocks()
public
testGetLocks() : mixed
Tags
Return values
mixed —testGetLocksChildren()
public
testGetLocksChildren() : mixed
Return values
mixed —testGetLocksParent()
public
testGetLocksParent() : mixed
Tags
Return values
mixed —testGetLocksParentDepth0()
public
testGetLocksParentDepth0() : mixed
Tags
Return values
mixed —testLockRefresh()
public
testLockRefresh() : mixed
Tags
Return values
mixed —testSetup()
public
testSetup() : mixed
Return values
mixed —testUnlock()
public
testUnlock() : mixed
Tags
Return values
mixed —testUnlockUnknownToken()
public
testUnlockUnknownToken() : mixed